mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-09-01 16:17:25 +02:00
Fix:Initial audiobook progress sync, Fix:Reset stream on logout
This commit is contained in:
@@ -15,7 +15,8 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
books() {
|
||||
return this.$store.getters['audiobooks/getFilteredAndSorted']()
|
||||
// return this.$store.getters['audiobooks/getFilteredAndSorted']()
|
||||
return this.$store.state.audiobooks.audiobooks
|
||||
},
|
||||
booksWithUserAbData() {
|
||||
var books = this.books.map((b) => {
|
||||
|
||||
@@ -10,6 +10,10 @@
|
||||
<app-bookshelf-list-row :key="book.id" :audiobook="book" :page-width="pageWidth" class="my-2" />
|
||||
</template>
|
||||
</div>
|
||||
<div v-show="!books.length" class="w-full py-16 text-center text-xl">
|
||||
<div class="py-4">No Books</div>
|
||||
<ui-btn v-if="hasFilters" @click="clearFilter">Clear Filter</ui-btn>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -25,6 +29,9 @@ export default {
|
||||
bookshelfView() {
|
||||
return this.$store.state.bookshelfView
|
||||
},
|
||||
hasFilters() {
|
||||
return this.$store.getters['user/getUserSetting']('mobileFilterBy') !== 'all'
|
||||
},
|
||||
isListView() {
|
||||
return this.bookshelfView === 'list'
|
||||
},
|
||||
@@ -57,7 +64,13 @@ export default {
|
||||
return shelves
|
||||
}
|
||||
},
|
||||
methods: {},
|
||||
methods: {
|
||||
clearFilter() {
|
||||
this.$store.dispatch('user/updateUserSettings', {
|
||||
mobileFilterBy: 'all'
|
||||
})
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.pageWidth = window.innerWidth
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user