mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-11 06:20:17 -05:00
[web] Use named route for genres
Switching to named routes in order to reduce future maintenance.
This commit is contained in:
@@ -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 }
|
||||
})
|
||||
},
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user