mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
parent
35c813f56f
commit
dcddd9c1e4
@ -16,7 +16,7 @@ angular.module('syncthing.core')
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
//Prevents user from adding a duplicate ID
|
//Prevents user from adding a duplicate ID
|
||||||
if ($scope.devices.hasOwnProperty(viewValue)) {
|
if (scope.devices.hasOwnProperty(viewValue)) {
|
||||||
ctrl.$setValidity('unique', false);
|
ctrl.$setValidity('unique', false);
|
||||||
} else {
|
} else {
|
||||||
ctrl.$setValidity('unique', true);
|
ctrl.$setValidity('unique', true);
|
||||||
|
Loading…
Reference in New Issue
Block a user