[web] Fix update dialog to not show the analyse action

This commit is contained in:
Alain Nussbaumer 2025-02-23 12:23:06 +01:00
parent 45f7defa09
commit 369e27fbed

View File

@ -66,20 +66,21 @@ export default {
}, },
computed: { computed: {
actions() { actions() {
return [ const actions = [
{ {
label: this.$t('dialog.update.cancel'), label: this.$t('dialog.update.cancel'),
handler: this.cancel, handler: this.cancel,
icon: '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() { rss() {
return this.libraryStore.rss return this.libraryStore.rss