mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 04:42:58 -05:00
[web] Use named route for podcast page
Switching to named routes in order to reduce future maintenance.
This commit is contained in:
@@ -105,7 +105,7 @@ export default {
|
||||
open_album(album) {
|
||||
this.selected_album = album
|
||||
if (this.media_kind_resolved === 'podcast') {
|
||||
this.$router.push({ path: '/podcasts/' + album.id })
|
||||
this.$router.push({ name: 'podcast', params: { id: album.id } })
|
||||
} else if (this.media_kind_resolved === 'audiobook') {
|
||||
this.$router.push({ name: 'audiobook', params: { id: album.id } })
|
||||
} else {
|
||||
|
||||
@@ -158,7 +158,7 @@ export default {
|
||||
open_album() {
|
||||
this.$emit('close')
|
||||
if (this.media_kind_resolved === 'podcast') {
|
||||
this.$router.push({ path: '/podcasts/' + this.album.id })
|
||||
this.$router.push({ name: 'podcast', params: { id: this.album.id } })
|
||||
} else if (this.media_kind_resolved === 'audiobook') {
|
||||
this.$router.push({ name: 'audiobook', params: { id: this.album.id } })
|
||||
} else {
|
||||
|
||||
@@ -209,7 +209,10 @@ export default {
|
||||
|
||||
open_album() {
|
||||
if (this.media_kind === 'podcast') {
|
||||
this.$router.push({ path: '/podcasts/' + this.item.album_id })
|
||||
this.$router.push({
|
||||
name: 'podcast',
|
||||
params: { id: this.item.album_id }
|
||||
})
|
||||
} else if (this.media_kind === 'audiobook') {
|
||||
this.$router.push({
|
||||
name: 'audiobook',
|
||||
|
||||
@@ -243,7 +243,10 @@ export default {
|
||||
open_album() {
|
||||
this.$emit('close')
|
||||
if (this.track.media_kind === 'podcast') {
|
||||
this.$router.push({ path: '/podcasts/' + this.track.album_id })
|
||||
this.$router.push({
|
||||
name: 'podcast',
|
||||
params: { id: this.track.album_id }
|
||||
})
|
||||
} else if (this.track.media_kind === 'audiobook') {
|
||||
this.$router.push({
|
||||
name: 'audiobook',
|
||||
|
||||
Reference in New Issue
Block a user