diff options
author | Max <max@nextcloud.com> | 2022-05-04 11:37:19 +0300 |
---|---|---|
committer | Max <max@nextcloud.com> | 2022-05-11 10:03:05 +0300 |
commit | 158ab34b57b787cadf631d434122f0ede1dcabc8 (patch) | |
tree | d4b702bfe5051de185b110f5590aa3da86c87e23 /src/nodes | |
parent | 842fbe7e5d33bfa334b104e158b0ce22c15d9c62 (diff) |
fix: only show delete image button when editing
Also test for it being shown and triggering the deleteNode
when editing.
Signed-off-by: Max <max@nextcloud.com>
Diffstat (limited to 'src/nodes')
-rw-r--r-- | src/nodes/ImageView.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nodes/ImageView.vue b/src/nodes/ImageView.vue index 99dda2500..fd9e3de30 100644 --- a/src/nodes/ImageView.vue +++ b/src/nodes/ImageView.vue @@ -41,7 +41,7 @@ type="text" :value="alt" @keyup.enter="updateAlt()"> - <div v-if="showIcons" + <div v-if="editor.isEditable && showIcons" class="trash-icon" title="Delete this image" @click="deleteNode"> |