Skip to content

Commit

Permalink
Merge pull request #2673 from nextcloud/backport/stable24/2359
Browse files Browse the repository at this point in the history
[stable24] fix: only show delete image button when editing
  • Loading branch information
mejo- authored Jul 6, 2022
2 parents b5aac79 + 94a1521 commit b50b44f
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions js/editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/editor.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-files.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-files.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-public.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-public.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-text.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-text.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-viewer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-viewer.js.map

Large diffs are not rendered by default.

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 b50b44f

Please sign in to comment.