mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 07:11:08 +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 () {
|
$scope.editDeviceUntrustedChanged = function () {
|
||||||
if (currentDevice.untrusted) {
|
if ($scope.currentDevice.untrusted) {
|
||||||
currentDevice.introducer = false;
|
$scope.currentDevice.introducer = false;
|
||||||
currentDevice.autoAcceptFolders = false;
|
$scope.currentDevice.autoAcceptFolders = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user