mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-16 07:48:38 -05:00
Add comments and minor changes from PR feedback
This commit is contained in:
@@ -81,6 +81,10 @@ function AtInputLookupController (baseInputController, $q, $state, $stateParams)
|
||||
vm.search = () => {
|
||||
scope.state._touched = true;
|
||||
|
||||
if (scope.state._displayValue === '' && !scope.state._required) {
|
||||
return vm.check({ isValid: true });
|
||||
}
|
||||
|
||||
return model.search({ [search.key]: scope.state._displayValue }, search.config)
|
||||
.then(found => {
|
||||
if (!found) {
|
||||
@@ -105,8 +109,6 @@ function AtInputLookupController (baseInputController, $q, $state, $stateParams)
|
||||
return vm.resetDebounce();
|
||||
}
|
||||
|
||||
scope.state._touched = true;
|
||||
|
||||
vm.searchAfterDebounce();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user