소스 검색

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 <[email protected]>
tomasz1986 2 년 전
부모
커밋
19bbf4f6bf
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      gui/default/syncthing/core/syncthingController.js

+ 3 - 3
gui/default/syncthing/core/syncthingController.js

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