iantrich / restriction-card

🔒 Apply restrictions to Lovelace cards
MIT License
259 stars 22 forks source link

custom dialog #6

Closed iantrich closed 4 years ago

iantrich commented 4 years ago

Tried to use @timmo001's nicely styled dialog in my card and it doesn't work until you bring up a card edit dialog. After you do that, it works great. Something being loaded by that edit card dialog that allows the confirmation dialog to then render? I'm not seeing what that would be. @bramkragten, got a second to take a look? thanks.

bramkragten commented 4 years ago

All dialogs are dynamically imported, so you don't have the dialog element before hass opened one.

But you can just fire the event to open the official one, you don't need to add your own dialog.