Add bookshelf list view

This commit is contained in:
advplyr 2022-04-07 19:59:23 -05:00
parent 119bfd6c98
commit 105451ebf1
8 changed files with 471 additions and 255 deletions

View file

@ -89,8 +89,7 @@ export default {
return categories
},
async fetchCategories(from = null) {
console.log('[4breadcrumbs] fetchCategories', from)
async fetchCategories() {
if (this.loading) {
console.log('Already loading categories')
return
@ -130,7 +129,7 @@ export default {
},
async libraryChanged(libid) {
if (this.currentLibraryId) {
await this.fetchCategories('libraryChanged')
await this.fetchCategories()
}
},
audiobookAdded(audiobook) {
@ -188,7 +187,7 @@ export default {
},
mounted() {
this.initListeners()
this.fetchCategories('mounted')
this.fetchCategories()
// if (this.$server.initialized && this.currentLibraryId) {
// this.fetchCategories()
// } else {