mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
39 lines
902 B
Vue
39 lines
902 B
Vue
|
<template>
|
||
|
<div class="page" :class="streamAudiobook ? 'streaming' : ''">
|
||
|
<div class="flex h-full">
|
||
|
<app-side-rail class="hidden md:block" />
|
||
|
<div class="flex-grow">
|
||
|
<app-book-shelf-toolbar :selected-series="series" />
|
||
|
<app-lazy-bookshelf page="series-books" :series-id="seriesId" />
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
async asyncData({ store, params, redirect, query, app }) {
|
||
|
var libraryId = params.library
|
||
|
var library = await store.dispatch('libraries/fetch', libraryId)
|
||
|
if (!library) {
|
||
|
return redirect('/oops?message=Library not found')
|
||
|
}
|
||
|
|
||
|
return {
|
||
|
series: app.$decode(params.id),
|
||
|
seriesId: params.id
|
||
|
}
|
||
|
},
|
||
|
data() {
|
||
|
return {}
|
||
|
},
|
||
|
computed: {
|
||
|
streamAudiobook() {
|
||
|
return this.$store.state.streamAudiobook
|
||
|
}
|
||
|
},
|
||
|
mounted() {},
|
||
|
beforeDestroy() {}
|
||
|
}
|
||
|
</script>
|