audiobookshelf/client/pages/library/_id.vue

35 lines
839 B
Vue
Raw Normal View History

2021-09-23 03:40:35 +02:00
<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" />
2021-09-23 03:40:35 +02:00
</div>
</div>
</div>
</template>
<script>
export default {
asyncData({ params, query, store, app }) {
if (query.filter) {
store.dispatch('user/updateUserSettings', { filterBy: query.filter })
}
2021-09-23 03:40:35 +02:00
return {
id: params.id,
selectedSeries: query.series ? app.$decode(query.series) : null
2021-09-23 03:40:35 +02:00
}
},
data() {
return {}
},
computed: {
streamAudiobook() {
return this.$store.state.streamAudiobook
}
},
methods: {},
mounted() {}
}
</script>