More bling for the marketplace SweetAlert2

ok…? can you let us know if your running it on a MAC or something crazy like that…? What browser are you using? I mean im forced to use IE at my work, but like everything shows fine (apart from some nivo charts) are you using community or enterprise? I am sure @adam would like feedback if you cannot get the code I posted to work, or if you cannot get inputs to display, have you also tried using the code on www.poshud.com on the inputs? Cos if they don’t work then there is a problem that needs to be submitted on github

Yeah, I have spoken to Adam about it. It happens on both windows 10 and server 2016 running under powershell or IIS. Chrome and Firefox are the browsers used on this dashboard. I am running Enterprise, but it happens on Prod Enterprise server, and dev box with community edition.

If any code inside of a udinput has output, it causes the input to get stuck spinning. If you make sure to have everything out to null, then it works fine. For some reason, these modals are giving me the same issue.

Thanks @gerane for clarifying the setup…I too am also running windows 10 at home and work, at work I installed the IIS on my windows 10 work PC and everything runs great…I have installed community on my home laptop running windows 10, no iis installed but everything works fine and dandy in that too. So I take it your using server 2016 to host in iis? Or are you using windows 10 iis to host? Just if your using windows 10 and hosting cannot see why you are getting this behaviour :confused:

P.S sadly I dont have server 2016 to test on…

Yeah, I have no idea why I see that behavior. It took me months to finally track down the issue being related to output. Will do the same thing if something has an unhandled exception.

Just another 2 pence worth but I mean seen other users say stuff has happened since 2.x.x upgrade…so have you tried a much earlier release of UD and do u get same issue? Please clarify if running the iis on server 2016? If so have u tried just hosting on win 10. Finally you get same issue running that demo script locally not on iis on win 10???

This happens with all elements that trigger the UDSweetAlert. What I did (hack but it works) is stuff the UDSweetAlert in a UDModal.

So when the UDSweetAlert loads it’s only wiping the Modal which you don’t even notice, then Hide :slight_smile: .

                           New-UDInputAction -Content {
                                Show-UDModal -Content {
                                   $AccessTokenGenerator = $((Get-Random -Minimum 0 -Maximum 99999 ).ToString('00000'))
                                   New-UDSweetAlert -ShowLoading $true -Type success -Text "Your Access Token is $($AccessTokenGenerator)"                                    
                                }
                                   Hide-UDModal
                            }
1 Like

Nice hack @mylabonline I need to get this working again on my laptop back to where I was with the JSX file I broke then will post this on github as been offered help on fixing issues with this by @AlonGvili which I do not want to pass up that offer! Thanks again for sharing this ‘workaround’

Any luck getting this working again? I upgraded to 2.7.0 and this stopped working.

Hey @Jacob-Evans to be totally honest with you :roll_eyes: , I haven’t revisited this component…I think I had some issue in IE trying to use it, and as thats the browser I am forced to use at work so I gave up…:frowning: I’m not a quitter, but been like so stupidly busy at work…I will revisit this component and see if I can get it working in 2.7.0 as running that myself now after re-licensing. I did think it looked super cool, and got a basic version working, but couldn’t get the input fields to work on this :frowning: so again parked it, and tried to build other components that worked easier. Or alternativley look at another alert modal component and see if that is easier to work with, thanks for showing your interest in this control.

Just resurrecting this one. @psDevUK is there any news on SweetAlert? This would be really cool to have, even if it was natively bundled with PSU and the ability to potentially use https://animate.style as well.

I think it may also be worth suggesting that perhaps the list of available components on the marketplace should be reviewed and sanitised as this is still available on there but has no information on what version(s) it is/isn’t compatible with.