Skip to content

fix: prevent multiple file/folder dialogs from opening simultaneously [0x954dB727D3b1d1C736A5C15b480bC2bFB3c8Ee63] - #2414

Open
waterWang wants to merge 1 commit into
freelensapp:mainfrom
waterWang:fix/1850-prevent-multiple-file-dialogs
Open

fix: prevent multiple file/folder dialogs from opening simultaneously [0x954dB727D3b1d1C736A5C15b480bC2bFB3c8Ee63]#2414
waterWang wants to merge 1 commit into
freelensapp:mainfrom
waterWang:fix/1850-prevent-multiple-file-dialogs

Conversation

@waterWang

Copy link
Copy Markdown

Description

When clicking the + button in the Clusters Catalog (or any path-picking button) multiple times quickly, multiple file/folder selection dialogs open simultaneously. This creates a confusing UX.

Changes

  1. openPathPickingDialog injectable: Added a guard flag that prevents opening a new dialog while one is already open. Subsequent calls are silently ignored until the current dialog closes.
  2. PathPicker component: Added a disabled state while the dialog is open, providing visual feedback and preventing accidental repeated clicks.

Fixes

Fixes #1850

Add a guard to the openPathPickingDialog injectable so that only one
file/folder selection dialog can be open at a time. When a dialog is
already open, subsequent calls are ignored until it closes.

Also disable the PathPicker button while a dialog is open to provide
visual feedback and prevent accidental repeated clicks.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple File/Folder Dialogs Open When Clicking + Button Repeatedly

1 participant