Skip to content

Commit

Permalink
fix: only show delete image button when editing
Browse files Browse the repository at this point in the history
Also test for it being shown and triggering the deleteNode
when editing.

Signed-off-by: Max <max@nextcloud.com>
  • Loading branch information
max-nextcloud committed Jul 6, 2022
1 parent f454bda commit 774ec37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodes/ImageView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,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">
Expand Down

0 comments on commit 774ec37

Please sign in to comment.