From 19bbf4f6bf3cf2fc56d3e983e455be5fe2ffddcb Mon Sep 17 00:00:00 2001 From: tomasz1986 Date: Fri, 22 Sep 2023 07:39:16 +0200 Subject: [PATCH] gui: Add missing $scope in editDeviceUntrustedChanged function (#9117) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- gui/default/syncthing/core/syncthingController.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 7c098aa61..0a9a10241 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; } }