posit-dev / py-shinyswatch

Bootswatch themes for py-shiny
https://posit-dev.github.io/py-shinyswatch/
MIT License
28 stars 3 forks source link

fix: Ensure paired server warning is removed #47

Closed gadenbuie closed 2 months ago

gadenbuie commented 2 months ago

Fixes #45

With the current approach, if the app takes a while to start up the warning message isn't removed and sticks around forever.

To reproduce the issue in #45, add time.sleep(2) at the start of the server function of examples/theme-picker/app.py.

gadenbuie commented 2 months ago

I also made the warning message an actual Bootstrap alert

image