Team edits don't show add members input if the user is not an admin

This commit is contained in:
kolaente 2018-09-17 08:28:43 +02:00
parent f47483df39
commit 4f571ef068
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -48,7 +48,7 @@
</p> </p>
</header> </header>
<div class="card-content content team-members"> <div class="card-content content team-members">
<form @submit.prevent="addUser()" class="add-member-form"> <form @submit.prevent="addUser()" class="add-member-form" v-if="userIsAdmin">
<div class="field is-grouped"> <div class="field is-grouped">
<p class="control has-icons-left is-expanded" v-bind:class="{ 'is-loading': loading}"> <p class="control has-icons-left is-expanded" v-bind:class="{ 'is-loading': loading}">
<input class="input" v-bind:class="{ 'disabled': loading}" v-model.number="newUser.id" type="text" placeholder="Add a new user..."> <input class="input" v-bind:class="{ 'disabled': loading}" v-model.number="newUser.id" type="text" placeholder="Add a new user...">