Skip to content

gui: fallback to folder ID when label is empty in remove dialog - #10656

Closed
RealCharlesChia wants to merge 2 commits into
syncthing:mainfrom
RealCharlesChia:fix/10458-folder-label-fallback
Closed

RealCharlesChia wants to merge 2 commits into
syncthing:mainfrom
RealCharlesChia:fix/10458-folder-label-fallback

Conversation

@RealCharlesChia

Copy link
Copy Markdown

Summary

Fixes issue #10458: When removing a folder without a Folder Label, the confirmation dialog now shows the folder ID instead of an empty string.

Before

Are you sure you want to remove folder ?

After

Are you sure you want to remove folder dnjdr-hssze?

Changes

Modified gui/default/syncthing/folder/removeFolderDialogView.html:

<!-- Before -->
<p translate translate-value-label="{{currentFolder.label}}">

<!-- After -->
<p translate translate-value-label="{{currentFolder.label || currentFolder.id}}">

The template now uses currentFolder.label || currentFolder.id as a fallback, so when the label is empty, the folder ID is displayed instead.

Testing

  1. Create a folder without a label
  2. Open the folder edit dialog
  3. Click remove
  4. Verify the confirmation dialog shows the folder ID instead of blank

Fixes #10458

Fixes syncthing#10458

When removing a folder without a label, the confirmation dialog
now shows the folder ID instead of an empty string.

Signed-off-by: RealCharlesChia <[email protected]>
@RealCharlesChia

RealCharlesChia commented Apr 23, 2026 •

Copy link
Copy Markdown
Author

Hi @imsodin , I apologize for the confusion with my previous PRs. I accidentally closed PR #10646 and #10654 while attempting to sync my branch with the latest main. This new PR #10656 is based on the latest main branch and includes the same fix with the DCO sign-off. I appreciate your patience with my learning curve.

Fixes syncthing#10458

When removing a folder without a label, the confirmation dialog
now shows the folder ID instead of an empty string.

Signed-off-by: RealCharlesChia <[email protected]>
@calmh calmh closed this Apr 23, 2026
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.

"Remove Folder" GUI prompt menu enhancement

2 participants