mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-05 02:38:09 -05:00
[web] Fix an issue preventing the index button list to work in the genre pages
This commit is contained in:
parent
294e640ac1
commit
a484f89e0a
@ -96,14 +96,10 @@ export default {
|
|||||||
return {
|
return {
|
||||||
genre: {},
|
genre: {},
|
||||||
albums_list: new GroupByList(),
|
albums_list: new GroupByList(),
|
||||||
|
media_kind: this.$route.query.media_kind,
|
||||||
show_genre_details_modal: false
|
show_genre_details_modal: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
|
||||||
media_kind() {
|
|
||||||
return this.$route.query.media_kind
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
open_tracks() {
|
open_tracks() {
|
||||||
this.show_details_modal = false
|
this.show_details_modal = false
|
||||||
|
@ -94,6 +94,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
beforeRouteUpdate(to, from, next) {
|
beforeRouteUpdate(to, from, next) {
|
||||||
|
if (!this.tracks_list.isEmpty()) {
|
||||||
|
next()
|
||||||
|
return
|
||||||
|
}
|
||||||
const vm = this
|
const vm = this
|
||||||
dataObject.load(to).then((response) => {
|
dataObject.load(to).then((response) => {
|
||||||
dataObject.set(vm, response)
|
dataObject.set(vm, response)
|
||||||
@ -118,6 +122,7 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
media_kind: this.$route.query.media_kind,
|
||||||
show_genre_details_modal: false,
|
show_genre_details_modal: false,
|
||||||
tracks_list: new GroupByList()
|
tracks_list: new GroupByList()
|
||||||
}
|
}
|
||||||
@ -127,9 +132,6 @@ export default {
|
|||||||
expression() {
|
expression() {
|
||||||
return `genre is "${this.genre.name}" and media_kind is ${this.media_kind}`
|
return `genre is "${this.genre.name}" and media_kind is ${this.media_kind}`
|
||||||
},
|
},
|
||||||
media_kind() {
|
|
||||||
return this.$route.query.media_kind
|
|
||||||
},
|
|
||||||
selected_groupby_option_id: {
|
selected_groupby_option_id: {
|
||||||
get() {
|
get() {
|
||||||
return this.$store.state.genre_tracks_sort
|
return this.$store.state.genre_tracks_sort
|
||||||
|
Loading…
x
Reference in New Issue
Block a user