gui: Fix nonfunctional ignore button on pending folder notification (#7224)

The merge of #6443 apparently introduced a wrong argument name in
$scope.ignoreFolder().
This commit is contained in:
André Colomb 2020-12-22 07:28:10 +01:00 committed by GitHub
parent 05f25e600e
commit 4bcc38cf63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1999,8 +1999,8 @@ angular.module('syncthing.core')
time: (new Date()).toISOString()
}
if (id in $scope.devices) {
$scope.devices[id].ignoredFolders.push(ignoredFolder);
if (device in $scope.devices) {
$scope.devices[device].ignoredFolders.push(ignoredFolder);
$scope.saveConfig();
}
};

View File

@ -2018,8 +2018,8 @@ angular.module('syncthing.core')
time: (new Date()).toISOString()
}
if (id in $scope.devices) {
$scope.devices[id].ignoredFolders.push(ignoredFolder);
if (device in $scope.devices) {
$scope.devices[device].ignoredFolders.push(ignoredFolder);
$scope.saveConfig();
}
};