Skip to content

Commit

Permalink
♻️ (#2345): small adjust
Browse files Browse the repository at this point in the history
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
  • Loading branch information
Vinicius Reis committed May 25, 2022
1 parent 13e2a0d commit bf8f930
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/Menu/ActionImageUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
:aria-label="actionEntry.label"
aria-haspopup>
<template #icon>
<component :is="isUploadingImages ? 'Loading' : actionEntry.icon"
<component :is="icon"
:title="actionEntry.label"
:aria-label="actionEntry.label"
aria-haspopup />
Expand Down Expand Up @@ -83,6 +83,11 @@ export default {
useActionChooseLocalImageMixin,
],
computed: {
icon() {
return this.isUploadingImages
? Loading
: this.actionEntry.icon
},
isUploadingImages() {
return this.$uploadingState.isUploadingImages
},
Expand Down

0 comments on commit bf8f930

Please sign in to comment.