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