浏览代码

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

The merge of #6443 apparently introduced a wrong argument name in
$scope.ignoreFolder().
André Colomb 4 年之前
父节点
当前提交
4bcc38cf63

+ 2 - 2
gui/default/syncthing/core/syncthingController.js

@@ -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();
             }
         };

+ 2 - 2
gui/default/untrusted/syncthing/core/syncthingController.js

@@ -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();
             }
         };