Skip to content

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

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

@calmh calmh changed the title gui: fallback to folder ID when label is empty in remove dialog fix(gui): fallback to folder ID when label is empty in remove dialog Apr 22, 2026
@github-actions github-actions Bot added the bug A problem with current functionality, as opposed to missing functionality (enhancement) label Apr 22, 2026
@imsodin

imsodin commented Apr 22, 2026

Copy link
Copy Markdown
Member

@RealCharlesChia The change looks good, thanks for contributing. The DCO is missing in your commit message which is required to accept and merge your PR. Please update your commit to include the sign-off line, see the section on DCO in the contribution docs.

This branch was previously deployed

2 inactive deployments
release — b1ccf3f3 Deployed Apr 23, 2026 by st-release via Publish nightly build #6299
docker — b1ccf3f3 Deployed Apr 23, 2026 by st-release via Sync images to Docker hub #6299
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

2 participants