Multiple dialogs #17998
-
Hi guys, Is it possible to have separate instance of dialog for each window so it remembers state each that use Dialog.create() bus? If not, is there any other way to achieve similar? On mobile dialogs are full screen with back button, on desktop normal dialogs. Its important to me to have this in url (can be get or uri). This is my watch:
Here is my composable to fire dialogs (same is for client and job)
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It seems the flow here is like this:
So, you must update your logic to not re-open the job/client dialogs if they are already open. If this is not the case, you must provide much more details and a reproduction. Otherwise, since the problem is unclear, you won't be able to get meaningful help. |
Beta Was this translation helpful? Give feedback.
-
Thanks for reply. Yes, your flow explanation is correct. The code I sent is not perfect. It is missing check if Is there any other way to achieve this? Maybe something built-in quasar framework? |
Beta Was this translation helpful? Give feedback.
You can see this https://stackblitz.com/edit/quasarframework-stackblitz-templates-ngvyjw8d
It shows Dialog can create infinite instances, even recursively. So, the problem lies within your logic. But, due to a very limited amount of information, we can't provide further help.