Fixed Handling rights when managing a list

This commit is contained in:
kolaente 2018-09-18 08:23:04 +02:00
parent 088008a4bf
commit 54a5797511
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -77,27 +77,33 @@
</template>
</td>
<td class="type">
<template v-if="u.admin">
<template v-if="u.right === 2">
<span class="icon is-small">
<icon icon="lock"/>
</span>
Admin
</template>
<template v-else-if="u.right === 1">
<span class="icon is-small">
<icon icon="pen"/>
</span>
Write
</template>
<template v-else>
<span class="icon is-small">
<icon icon="user"/>
<icon icon="users"/>
</span>
Member
Read-only
</template>
</td>
<td class="actions" v-if="userIsAdmin">
<button @click="toggleUserType(u.id, (u.right === 2))" class="button buttonright is-primary" v-if="u.id !== user.infos.id">
Make
<template v-if="u.right === 2">
Admin
Member
</template>
<template v-else>
Member
Admin
</template>
</button>
<button @click="userToDelete = u.id; showUserDeleteModal = true" class="button is-danger" v-if="u.id !== user.infos.id">