refactor new project component form validation

This commit is contained in:
dandds
2018-09-25 12:02:59 -04:00
parent e78c535659
commit 7ae201655a
3 changed files with 24 additions and 59 deletions

View File

@@ -42,14 +42,8 @@
</div>
</div>
<div v-if="errors.showMissingError">
{{ Alert("Provide at least one environment name.", level="error") }}
</div>
<div v-if="errors.showUniqueError">
{{ Alert("Environment names must be unique.", level="error") }}
</div>
<div v-if="errors.showEmptyError">
{{ Alert("Environment names cannot be empty.", level="error") }}
<div v-for="title in errors">
{{ Alert(message=None, level="error", vue_template=True) }}
</div>
<div class="block-list project-list-item">
@@ -78,7 +72,6 @@
</div>
</div>
<div class="action-group">
<button v-on:click="validateAndOpenModal('{{ modalName }}')" class="usa-button usa-button-primary" tabindex="0" type="button">{{ action_text }} Project</button>
</div>