Side rail, book group cards, fix dropdown select

This commit is contained in:
Mark Cooper 2021-09-24 07:32:38 -05:00
parent 94741598af
commit fcd664c16e
24 changed files with 615 additions and 97 deletions

View file

@ -130,7 +130,7 @@ export default {
this.isProcessing = false
if (data.updates) {
this.$toast.success(`Successfully updated ${data.updates} audiobooks`)
this.$router.replace('/')
this.$router.replace('/library')
} else {
this.$toast.warning('No updates were necessary')
}

View file

@ -1,10 +1,10 @@
<template>
<div class="page" :class="streamAudiobook ? 'streaming' : ''">
<app-book-shelf-toolbar />
<!-- <app-book-shelf-toolbar /> -->
<!-- <div class="flex h-full">
<app-side-rail />
<div class="flex-grow"> -->
<app-book-shelf />
<!-- <app-book-shelf /> -->
<!-- </div> -->
<!-- </div> -->
</div>
@ -12,6 +12,9 @@
<script>
export default {
asyncData({ redirect }) {
redirect('/library')
},
data() {
return {}
},

View file

@ -3,8 +3,8 @@
<div class="flex h-full">
<app-side-rail />
<div class="flex-grow">
<app-book-shelf-toolbar />
<app-book-shelf :page="id || ''" />
<app-book-shelf-toolbar :page="id || ''" :selected-series.sync="selectedSeries" />
<app-book-shelf :page="id || ''" :selected-series.sync="selectedSeries" />
</div>
</div>
</div>
@ -12,9 +12,13 @@
<script>
export default {
asyncData({ params }) {
asyncData({ params, query, store, app }) {
if (query.filter) {
store.dispatch('user/updateUserSettings', { filterBy: query.filter })
}
return {
id: params.id
id: params.id,
selectedSeries: query.series ? app.$decode(query.series) : null
}
},
data() {

View file

@ -37,7 +37,7 @@ export default {
if (this.$route.query.redirect) {
this.$router.replace(this.$route.query.redirect)
} else {
this.$router.replace('/')
this.$router.replace('/library')
}
}
}