mirror of
https://github.com/syncthing/syncthing.git
synced 2026-04-25 08:48:35 -04:00
## 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`: ```html <!-- Before --> <p translate translate-value-label="{{currentFolder.label}}"> <!-- After --> <p translate translate-value-label="{{currentFolder.label || currentFolder.id}}"> ``` ### 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 Signed-off-by: RealCharlesChia <161665317+RealCharlesChia@users.noreply.github.com>
19 lines
862 B
HTML
19 lines
862 B
HTML
<modal id="remove-folder-confirmation" status="warning" icon="fas fa-question-circle" heading="{{'Remove Folder' | translate}}" large="no" closeable="yes">
|
|
<div class="modal-body">
|
|
<p translate translate-value-label="{{currentFolder.label || currentFolder.id}}">
|
|
Are you sure you want to remove folder {%label%}?
|
|
</p>
|
|
<p translate>
|
|
No files will be deleted as a result of this operation.
|
|
</p>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-warning pull-left btn-sm" data-dismiss="modal" ng-click="deleteFolder(currentFolder.id)">
|
|
<span class="fas fa-check"></span> <span translate>Yes</span>
|
|
</button>
|
|
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">
|
|
<span class="fas fa-times"></span> <span translate>No</span>
|
|
</button>
|
|
</div>
|
|
</modal>
|