diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 1238e0e4c..9fd2194eb 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -1416,6 +1416,13 @@ angular.module('syncthing.core') $('#editDevice').modal(); }; + $scope.selectAllFolders = function (state) { + var folders = $scope.folders; + for (var id in folders) { + $scope.currentSharing.selected[id] = !!state; + }; + }; + $scope.selectAllSharedFolders = function (state) { var devices = $scope.currentSharing.shared; for (var i = 0; i < devices.length; i++) { diff --git a/gui/default/syncthing/device/editDeviceModalView.html b/gui/default/syncthing/device/editDeviceModalView.html index 49fd7d613..2f846f33b 100644 --- a/gui/default/syncthing/device/editDeviceModalView.html +++ b/gui/default/syncthing/device/editDeviceModalView.html @@ -69,8 +69,8 @@
Select the folders to share with this device. - Select All - Deselect All + Select All + Deselect All