瀏覽代碼

gui: Remove erronous $ from scope in directive (fixes #7124) (#7125)

Simon Frei 5 年之前
父節點
當前提交
53fd54e308
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/default/syncthing/core/validDeviceidDirective.js

+ 1 - 1
gui/default/syncthing/core/validDeviceidDirective.js

@@ -16,7 +16,7 @@ angular.module('syncthing.core')
                             }
                         });
                         //Prevents user from adding a duplicate ID
-                        if ($scope.devices.hasOwnProperty(viewValue)) {
+                        if (scope.devices.hasOwnProperty(viewValue)) {
                             ctrl.$setValidity('unique', false);
                         } else {
                             ctrl.$setValidity('unique', true);