mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-05 02:34:56 +02:00
New model updates for series, collections, authors routes
This commit is contained in:
parent
73257188f6
commit
2d19208340
19 changed files with 432 additions and 247 deletions
|
@ -18,9 +18,16 @@ export default {
|
|||
if (!library) {
|
||||
return redirect('/oops?message=Library not found')
|
||||
}
|
||||
var series = await app.$axios.$get(`/api/series/${params.id}`).catch((error) => {
|
||||
console.error('Failed', error)
|
||||
return false
|
||||
})
|
||||
if (!series) {
|
||||
return redirect('/oops?message=Series not found')
|
||||
}
|
||||
|
||||
return {
|
||||
series: app.$decode(params.id),
|
||||
series: series.name,
|
||||
seriesId: params.id
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue