refactor for more abstract validation handling in new project Vue

component
This commit is contained in:
dandds
2018-09-25 10:09:01 -04:00
parent 95afcc69dd
commit 033ee4e36e
2 changed files with 41 additions and 21 deletions

View File

@@ -42,12 +42,15 @@
</div>
</div>
<div v-if="showMissingError">
<div v-if="errors.showMissingError">
{{ Alert("Provide at least one environment name.", level="error") }}
</div>
<div v-if="showUniqueError">
<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>
<div class="block-list project-list-item">
<header class="block-list__header block-list__header--grow">