mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-24 04:20:35 -04:00
[web] Fix update dialog to not show the analyse action
This commit is contained in:
parent
45f7defa09
commit
369e27fbed
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user