diff --git a/gui/default/index.html b/gui/default/index.html index 624ffe901..7d05d39c9 100644 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -788,6 +788,12 @@
+ + diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 277b37e8e..cd3f6e105 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -1588,6 +1588,24 @@ angular.module('syncthing.core') return devices; }; + $scope.setAllDevicesPause = function (pause) { + $scope.devices.forEach(function (cfg) { + cfg.paused = pause; + }); + $scope.config.devices = $scope.devices; + $scope.saveConfig(); + } + + $scope.isAtleastOneDevicePausedStateSetTo = function (pause) { + for (var i = 0; i < $scope.devices.length; i++) { + if ($scope.devices[i].paused == pause) { + return true; + } + } + + return false + } + $scope.errorList = function () { if (!$scope.errors) { return [];