From 99e0cfe6bbda7aa7491cac241c23a4b5d6ff79d2 Mon Sep 17 00:00:00 2001
From: chme
+
Genre - {{ track.genre }} + {{ track.genre }}
Track / Disc @@ -131,6 +131,10 @@ export default { 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 () { webapi.library_track_update(this.track.id, { 'play_count': 'reset' }).then(() => { this.$emit('play_count_changed') diff --git a/web-src/src/pages/PageGenre.vue b/web-src/src/pages/PageGenre.vue index 6e055cf7..fb0a078d 100644 --- a/web-src/src/pages/PageGenre.vue +++ b/web-src/src/pages/PageGenre.vue @@ -72,7 +72,7 @@ export default { methods: { open_tracks: function () { 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 () { diff --git a/web-src/src/pages/PageGenreTracks.vue b/web-src/src/pages/PageGenreTracks.vue index f5734f8e..9f2660ab 100644 --- a/web-src/src/pages/PageGenreTracks.vue +++ b/web-src/src/pages/PageGenreTracks.vue @@ -71,7 +71,7 @@ export default { methods: { open_genre: function () { this.show_details_modal = false - this.$router.push({ path: '/music/genres/' + this.genre }) + this.$router.push({ name: 'Genre', params: { genre: this.genre } }) }, play: function () {