Don't show trash icon on first environment name input

This commit is contained in:
richard-dds 2018-08-23 11:50:21 -04:00
parent e68ddfb06d
commit 7a8b0a2562

View File

@ -44,8 +44,8 @@
<label :for="'environment_names-' + i">Environment Name</span> <label :for="'environment_names-' + i">Environment Name</span>
<input type="text" :name="'environment_names-' + i" :id="'environment_names-' + i" v-model="environment.name"></input> <input type="text" :name="'environment_names-' + i" :id="'environment_names-' + i" v-model="environment.name"></input>
</div> </div>
<button v-on:click="removeEnvironment(i)" type="button" class='project-edit__env-list-item__remover'> <button v-on:click="removeEnvironment(i)" v-if="i > 0" type="button" class='project-edit__env-list-item__remover'>
{{ Icon('trash') }} <span>{{ Icon('trash') }}</span>
<span>Remove</span> <span>Remove</span>
</button> </button>
</li> </li>