mirror of
https://github.com/syncthing/syncthing.git
synced 2026-02-23 18:18:33 -05:00
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 () {
|
||||
if (currentDevice.untrusted) {
|
||||
currentDevice.introducer = false;
|
||||
currentDevice.autoAcceptFolders = false;
|
||||
if ($scope.currentDevice.untrusted) {
|
||||
$scope.currentDevice.introducer = false;
|
||||
$scope.currentDevice.autoAcceptFolders = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user