Skip to content

fix(gui): fallback to folder ID when label is empty in remove dialog - #10654

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

RealCharlesChia wants to merge 0 commit 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

@RealCharlesChia

RealCharlesChia commented Apr 23, 2026 •

Copy link
Copy Markdown
Author

Hi @imsodin , Thanks for the review! I apologize - I accidentally closed the previous PR #10646 while rebasing and adding the DCO sign-off. This new PR #10654 includes the DCO and is based on the latest main branch. Please let me know if anything needs to be adjusted.

@github-actions github-actions Bot added the bug A problem with current functionality, as opposed to missing functionality (enhancement) label Apr 23, 2026

This branch was previously deployed

1 inactive deployment
docker — 2721b7b5 Deployed Apr 23, 2026 by calmh via Sync images to Docker hub #6304
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug A problem with current functionality, as opposed to missing functionality (enhancement)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Remove Folder" GUI prompt menu enhancement

1 participant