From 369e27fbed84a5c708dc9f12770d14e392bf0753 Mon Sep 17 00:00:00 2001 From: Alain Nussbaumer Date: Sun, 23 Feb 2025 12:23:06 +0100 Subject: [PATCH] [web] Fix update dialog to not show the analyse action --- web-src/src/components/ModalDialogUpdate.vue | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/web-src/src/components/ModalDialogUpdate.vue b/web-src/src/components/ModalDialogUpdate.vue index b5858d66..5a1d108a 100644 --- a/web-src/src/components/ModalDialogUpdate.vue +++ b/web-src/src/components/ModalDialogUpdate.vue @@ -66,20 +66,21 @@ export default { }, computed: { actions() { - return [ + const actions = [ { label: this.$t('dialog.update.cancel'), handler: this.cancel, icon: 'cancel' - }, - { - label: this.libraryStore.updating - ? this.$t('dialog.update.progress') - : this.$t('dialog.update.rescan'), - handler: this.analyse, - icon: 'check' } ] + if (!this.libraryStore.updating) { + actions.push({ + label: this.$t('dialog.update.rescan'), + handler: this.analyse, + icon: 'check' + }) + } + return actions }, rss() { return this.libraryStore.rss