Skip to content

Prevent opening the assistant dialog multiple times#523

Open
julien-nc wants to merge 1 commit intomainfrom
fix/noid/multiple-dialogs
Open

Prevent opening the assistant dialog multiple times#523
julien-nc wants to merge 1 commit intomainfrom
fix/noid/multiple-dialogs

Conversation

@julien-nc
Copy link
Copy Markdown
Member

@julien-nc julien-nc commented May 5, 2026

Now that the dialog is not modal anymore, it is possible to open it multiple times because we can interact with the UI elements that trigger that.

This fix prevents that from happening when it is opened from:

  • the top right menu entry
  • another app by calling openAssistantForm
  • a notification

In a nutshell: We remember when it's opened and we remember when it is closed (the Vue instance is unmounted).

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
@julien-nc julien-nc added bug Something isn't working 3. to review priority high javascript Pull requests that update javascript code labels May 5, 2026
Copy link
Copy Markdown
Contributor

@kyteinsky kyteinsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a suggestion: maybe the button can be disabled/used as a toggle in addition to this change
the toggle part maybe only works if the visibility is toggled, isn't great when the div is unmunted I suppose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review bug Something isn't working javascript Pull requests that update javascript code priority high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants