remove linked fields from validation loop

All linked fields are initially valid. All unlinked fields
are initially valid.
This commit is contained in:
Jake McDermott 2019-03-27 08:47:30 -04:00
parent 7a093de9fd
commit b90f9ac401
No known key found for this signature in database
GPG Key ID: 9A6F084352C3A0B7
2 changed files with 6 additions and 0 deletions

View File

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

View File

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