hide admin switch for currently logged in user
This commit is contained in:
parent
8e39fef806
commit
3080d07502
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
<md-input v-model="user.password" type="password" />
|
||||
</md-input-container>
|
||||
|
||||
<md-switch v-if="loggedInUser.isAdmin" v-model="user.isAdmin" class="md-warn">is admin</md-switch>
|
||||
<md-switch v-if="loggedInUser.isAdmin && loggedInUser.username != user.username" v-model="user.isAdmin" class="md-warn">is admin</md-switch>
|
||||
|
||||
<br />
|
||||
<md-button id="save-button" class="md-raised md-primary" @click="save()">Save</md-button>
|
||||
|
|
Loading…
Reference in a new issue