mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 11:20:39 -03:30
remove linked fields from validation loop
All linked fields are initially valid. All unlinked fields are initially valid.
This commit is contained in:
parent
7a093de9fd
commit
b90f9ac401
@ -230,6 +230,8 @@ function AddEditCredentialsController (
|
||||
vm.form[field].asTag = false;
|
||||
vm.form[field]._value = '';
|
||||
vm.form[field]._tagValue = '';
|
||||
vm.form[field]._isValid = true;
|
||||
vm.form[field]._rejected = false;
|
||||
vm.inputSources.items = vm.inputSources.items
|
||||
.filter(({ input_field_name }) => input_field_name !== field);
|
||||
vm.inputSources.changedInputFields.push(field);
|
||||
|
||||
@ -188,6 +188,10 @@ function AtFormController (eventService, strings) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (vm.components[i].state.asTag) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!vm.components[i].state._isValid) {
|
||||
isValid = false;
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user