gui: Fix loop selecting all devices (fixes #5980) (#6102)

This commit is contained in:
Simon Frei 2019-10-22 14:57:10 +02:00 committed by Audrius Butkevicius
parent 72194d137c
commit 72f26c1e45
1 changed files with 2 additions and 2 deletions

View File

@ -1401,13 +1401,13 @@ angular.module('syncthing.core')
};
$scope.selectAllFolders = function () {
angular.forEach($scope.folders, function (id) {
angular.forEach($scope.folders, function (_, id) {
$scope.currentDevice.selectedFolders[id] = true;
});
};
$scope.deSelectAllFolders = function () {
angular.forEach($scope.folders, function (id) {
angular.forEach($scope.folders, function (_, id) {
$scope.currentDevice.selectedFolders[id] = false;
});
};