1
0

Fix showing edit buttons when the user does not have the rights to use them

This commit is contained in:
kolaente
2021-06-03 16:27:41 +02:00
parent c92062b6a5
commit 0cd9d43a7c
5 changed files with 15 additions and 7 deletions

View File

@ -34,11 +34,13 @@
<p class="has-text-centered has-text-grey is-italic" v-if="isPreviewActive && text === '' && emptyText !== ''">
{{ emptyText }}
<a @click="toggleEdit">Edit</a>.
<template v-if="isEditEnabled">
<a @click="toggleEdit">Edit</a>.
</template>
</p>
<ul class="actions">
<template v-if="hasEditBottom">
<template v-if="hasEditBottom && isEditEnabled">
<li>
<a v-if="!isEditActive" @click="toggleEdit">Edit</a>
<a v-else @click="toggleEdit">Done</a>