[web] Use named route for genres

Switching to named routes in order to reduce future maintenance.
This commit is contained in:
Alain Nussbaumer
2023-07-10 20:54:52 +02:00
parent d0fbd68523
commit 59aa462b05
9 changed files with 36 additions and 24 deletions

View File

@@ -106,7 +106,7 @@ export default {
open_tracks() {
this.show_details_modal = false
this.$router.push({
name: 'GenreTracks',
name: 'music-genre-tracks',
params: { genre: this.genre.name }
})
},

View File

@@ -55,9 +55,9 @@
<script>
import * as types from '@/store/mutation_types'
import { GroupByList, byName, byRating } from '@/lib/GroupByList'
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
import ControlDropdown from '@/components/ControlDropdown.vue'
import { GroupByList, byName, byRating } from '@/lib/GroupByList'
import IndexButtonList from '@/components/IndexButtonList.vue'
import ListTracks from '@/components/ListTracks.vue'
import ModalDialogGenre from '@/components/ModalDialogGenre.vue'
@@ -146,7 +146,10 @@ export default {
methods: {
open_genre() {
this.show_details_modal = false
this.$router.push({ name: 'Genre', params: { genre: this.genre.name } })
this.$router.push({
name: 'music-genre',
params: { genre: this.genre.name }
})
},
play() {