diff options
author | Vinicius Reis <vinicius.reis@nextcloud.com> | 2022-05-25 19:48:13 +0300 |
---|---|---|
committer | Vinicius Reis <vinicius.reis@nextcloud.com> | 2022-05-25 19:48:13 +0300 |
commit | bf8f930e4ad0fdde6fadbdab2cb9039bd6d5ba42 (patch) | |
tree | 272a76f6ecb7888200e551b50d808b7a98361907 /src | |
parent | 13e2a0d66b45844acd44a8f7ae209eacabc3ed1b (diff) |
♻️ (#2345): small adjust
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/Menu/ActionImageUpload.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/Menu/ActionImageUpload.vue b/src/components/Menu/ActionImageUpload.vue index ae359f2db..3cf40212b 100644 --- a/src/components/Menu/ActionImageUpload.vue +++ b/src/components/Menu/ActionImageUpload.vue @@ -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 /> @@ -83,6 +83,11 @@ export default { useActionChooseLocalImageMixin, ], computed: { + icon() { + return this.isUploadingImages + ? Loading + : this.actionEntry.icon + }, isUploadingImages() { return this.$uploadingState.isUploadingImages }, |