hide admin switch for currently logged in user

This commit is contained in:
Davide Alberani 2017-03-01 08:43:08 +01:00
parent 8e39fef806
commit 3080d07502

View file

@ -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>