Fix showing edit buttons when the user does not have the rights to use them
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user