From 4bcc38cf63f980014808205d3854935313b82b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Colomb?= Date: Tue, 22 Dec 2020 07:28:10 +0100 Subject: [PATCH] gui: Fix nonfunctional ignore button on pending folder notification (#7224) The merge of #6443 apparently introduced a wrong argument name in $scope.ignoreFolder(). --- gui/default/syncthing/core/syncthingController.js | 4 ++-- gui/default/untrusted/syncthing/core/syncthingController.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index cc760bb82..2c05cffa6 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/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(); } }; diff --git a/gui/default/untrusted/syncthing/core/syncthingController.js b/gui/default/untrusted/syncthing/core/syncthingController.js index fa94ede17..5fa58ed63 100755 --- a/gui/default/untrusted/syncthing/core/syncthingController.js +++ b/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(); } };