mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-23 12:05:47 -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: {
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user