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>
This commit is contained in:
tomasz1986 2023-09-22 07:39:16 +02:00 committed by GitHub
parent cf46bf0297
commit 19bbf4f6bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

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