Browse Source

Fix deleting a folder.

Removing a folder does not work in the "Edit Folder" dialog.
This bug was introduced in 26d52be.
KAMADA Ken'ichi 10 years ago
parent
commit
1e497915be
2 changed files with 2 additions and 2 deletions
  1. 1 1
      gui/syncthing/folder/editFolderModalView.html
  2. 1 1
      lib/auto/gui.files.go

+ 1 - 1
gui/syncthing/folder/editFolderModalView.html

@@ -164,7 +164,7 @@
       <div class="modal-footer">
         <button type="button" class="btn btn-primary btn-sm" ng-click="saveFolder()" ng-disabled="folderEditor.$invalid"><span class="glyphicon glyphicon-ok"></span>&nbsp;<span translate>Save</span></button>
         <button type="button" class="btn btn-default btn-sm" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span>&nbsp;<span translate>Close</span></button>
-        <button ng-if="editingExisting" type="button" class="btn btn-warning pull-left btn-sm" ng-click="deleteFolder()"><span class="glyphicon glyphicon-minus"></span>&nbsp;<span translate>Remove</span></button>
+        <button ng-if="editingExisting" type="button" class="btn btn-warning pull-left btn-sm" ng-click="deleteFolder(currentFolder.id)"><span class="glyphicon glyphicon-minus"></span>&nbsp;<span translate>Remove</span></button>
         <button id="editIgnoresButton" ng-if="editingExisting" type="button" class="btn btn-default pull-left btn-sm" ng-click="editIgnores()"><span class="glyphicon glyphicon-eye-close"></span>&nbsp;<span translate>Ignore Patterns</span></button>
       </div>
     </div>

File diff suppressed because it is too large
+ 1 - 1
lib/auto/gui.files.go


Some files were not shown because too many files changed in this diff