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:
@@ -1711,9 +1711,9 @@ angular.module('syncthing.core')
|
|||||||
}
|
}
|
||||||
|
|
||||||
$scope.editDeviceUntrustedChanged = function () {
|
$scope.editDeviceUntrustedChanged = function () {
|
||||||
if (currentDevice.untrusted) {
|
if ($scope.currentDevice.untrusted) {
|
||||||
currentDevice.introducer = false;
|
$scope.currentDevice.introducer = false;
|
||||||
currentDevice.autoAcceptFolders = false;
|
$scope.currentDevice.autoAcceptFolders = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user