diff options
author | tomasz1986 <twilczynski@naver.com> | 2023-09-22 07:39:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-22 07:39:16 +0200 |
commit | 19bbf4f6bf3cf2fc56d3e983e455be5fe2ffddcb (patch) | |
tree | 160d00b32058cb6b60bb435ec7f83377728d9c08 | |
parent | cf46bf029755997899da1d20d5634519c677ec84 (diff) |
gui: Add missing $scope in editDeviceUntrustedChanged function (#9117)
Because $scope is missing, there are JavaScript errors when ticking and
unticking the "Untrusted" checkbox in the Advanced tab of the Edit
Device modal.
Signed-off-by: Tomasz WilczyĆski <twilczynski@naver.com>
-rwxr-xr-x | gui/default/syncthing/core/syncthingController.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 7c098aa619..0a9a102412 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -1711,9 +1711,9 @@ angular.module('syncthing.core') } $scope.editDeviceUntrustedChanged = function () { - if (currentDevice.untrusted) { - currentDevice.introducer = false; - currentDevice.autoAcceptFolders = false; + if ($scope.currentDevice.untrusted) { + $scope.currentDevice.introducer = false; + $scope.currentDevice.autoAcceptFolders = false; } } |