mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-09 04:38:10 -05:00
[web-src] Fix error following genre links (add missing url encoding of genre name in url)
This commit is contained in:
parent
d51f9b0722
commit
99e0cfe6bb
@ -98,7 +98,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
open_genre: function () {
|
open_genre: function () {
|
||||||
this.$router.push({ path: '/music/genres/' + this.item.genre })
|
this.$router.push({ name: 'Genre', params: { genre: this.item.name } })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,9 +37,9 @@
|
|||||||
<span class="heading">Year</span>
|
<span class="heading">Year</span>
|
||||||
<span class="title is-6">{{ track.year }}</span>
|
<span class="title is-6">{{ track.year }}</span>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p v-if="track.genre">
|
||||||
<span class="heading">Genre</span>
|
<span class="heading">Genre</span>
|
||||||
<span class="title is-6">{{ track.genre }}</span>
|
<a class="title is-6 has-text-link" @click="open_genre">{{ track.genre }}</a>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<span class="heading">Track / Disc</span>
|
<span class="heading">Track / Disc</span>
|
||||||
@ -131,6 +131,10 @@ export default {
|
|||||||
this.$router.push({ path: '/music/artists/' + this.track.album_artist_id })
|
this.$router.push({ path: '/music/artists/' + this.track.album_artist_id })
|
||||||
},
|
},
|
||||||
|
|
||||||
|
open_genre: function () {
|
||||||
|
this.$router.push({ name: 'Genre', params: { genre: this.track.genre } })
|
||||||
|
},
|
||||||
|
|
||||||
mark_new: function () {
|
mark_new: function () {
|
||||||
webapi.library_track_update(this.track.id, { 'play_count': 'reset' }).then(() => {
|
webapi.library_track_update(this.track.id, { 'play_count': 'reset' }).then(() => {
|
||||||
this.$emit('play_count_changed')
|
this.$emit('play_count_changed')
|
||||||
|
@ -72,7 +72,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
open_tracks: function () {
|
open_tracks: function () {
|
||||||
this.show_details_modal = false
|
this.show_details_modal = false
|
||||||
this.$router.push({ path: '/music/genres/' + this.name + '/tracks' })
|
this.$router.push({ name: 'GenreTracks', params: { genre: this.name } })
|
||||||
},
|
},
|
||||||
|
|
||||||
play: function () {
|
play: function () {
|
||||||
|
@ -71,7 +71,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
open_genre: function () {
|
open_genre: function () {
|
||||||
this.show_details_modal = false
|
this.show_details_modal = false
|
||||||
this.$router.push({ path: '/music/genres/' + this.genre })
|
this.$router.push({ name: 'Genre', params: { genre: this.genre } })
|
||||||
},
|
},
|
||||||
|
|
||||||
play: function () {
|
play: function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user