mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
35 lines
839 B
Vue
35 lines
839 B
Vue
<template>
|
|
<div class="page" :class="streamAudiobook ? 'streaming' : ''">
|
|
<div class="flex h-full">
|
|
<app-side-rail />
|
|
<div class="flex-grow">
|
|
<app-book-shelf-toolbar :page="id || ''" :selected-series.sync="selectedSeries" />
|
|
<app-book-shelf :page="id || ''" :selected-series.sync="selectedSeries" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
asyncData({ params, query, store, app }) {
|
|
if (query.filter) {
|
|
store.dispatch('user/updateUserSettings', { filterBy: query.filter })
|
|
}
|
|
return {
|
|
id: params.id,
|
|
selectedSeries: query.series ? app.$decode(query.series) : null
|
|
}
|
|
},
|
|
data() {
|
|
return {}
|
|
},
|
|
computed: {
|
|
streamAudiobook() {
|
|
return this.$store.state.streamAudiobook
|
|
}
|
|
},
|
|
methods: {},
|
|
mounted() {}
|
|
}
|
|
</script> |