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

This commit is contained in:
Simon Frei 2020-11-18 13:33:19 +01:00 committed by GitHub
parent 2d3a535ced
commit 53fd54e308
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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