Open an aurelia dialog from within a dialog

I’m using Aurelia Dialog to open a modal dialog. When the user clicks the save button on the dialog, I need to open another modal dialog in order to get further information from the user – but I want the first dialog to remain open.

Is this possible with Aurelia Dialog? As of now, as soon as I open the second dialog, the first dialog disappears.

1 Like

Not sure if that’s doable but this sounds like very very bad UX. Could you perhaps change the content of the dialog in a wizard style manner? Essentially having compose as the body and reacting on the buttons click to swap out the content should be easily doable

1 Like

That’s a great idea. I hadn’t even thought of that. Thanks!

2 Likes

So, I found out that you can do a dialog within a dialog. In re-looking at my code, I realized I had code that was closing the original dialog – it was outside the promise of the dialog controller so it was being executed too soon.

2 Likes