Skip to content

Commit

Permalink
hide image link input when closing image action popup
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
  • Loading branch information
Julien Veyssier committed Nov 22, 2021
1 parent d477769 commit 2d72f6c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/MenuBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
<Actions v-else-if="icon.class === 'icon-image'"
:key="icon.label"
ref="imageActions"
:default-icon="'icon-image'">
:default-icon="'icon-image'"
@close="onImageActionClose">
<button slot="icon"
:class="{ 'icon-image': true, 'loading-small': uploadingImage }"
:title="icon.label"
Expand Down Expand Up @@ -337,6 +338,9 @@ export default {
const lastValue = Object.prototype.hasOwnProperty.call(this.submenuVisibility, icon.label) ? this.submenuVisibility[icon.label] : false
this.$set(this.submenuVisibility, icon.label, !lastValue)
},
onImageActionClose() {
this.showImageLinkPrompt = false
},
onUploadImage(command) {
this.imageCommand = command
this.$refs.imageFileInput.click()
Expand Down

0 comments on commit 2d72f6c

Please sign in to comment.