mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 19:08:58 +00: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:
parent
cf46bf0297
commit
19bbf4f6bf
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user