new project Vue component handles redundant env name validation

This commit is contained in:
dandds
2018-09-24 14:50:54 -04:00
parent 729c96de3a
commit 97f3816627
2 changed files with 28 additions and 13 deletions

View File

@@ -42,14 +42,12 @@
</div>
</div>
{% if form.environment_names.errors %}
{% for error in form.environment_names.errors %}
{{ Alert(error, level="error") }}
{% endfor %}
{% endif %}
<div v-if="showError">
<div v-if="showMissingError">
{{ Alert("Provide at least one environment name.", level="error") }}
</div>
<div v-if="showUniqueError">
{{ Alert("Environment names must be unique.", level="error") }}
</div>
<div class="block-list project-list-item">
<header class="block-list__header block-list__header--grow">