refactor new project component form validation
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user