mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-30 15:17:14 +02:00
Refactor capacitor plugins, clean up and organize android plugin classes
This commit is contained in:
@@ -35,7 +35,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
shelves: [],
|
||||
loading: true
|
||||
loading: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -87,11 +87,14 @@ export default {
|
||||
return categories
|
||||
},
|
||||
async fetchCategories() {
|
||||
if (this.loading) {
|
||||
console.log('Already loading categories')
|
||||
return
|
||||
}
|
||||
this.loading = true
|
||||
this.shelves = []
|
||||
|
||||
var localCategories = await this.getLocalMediaItemCategories()
|
||||
console.log('Category shelves', localCategories.length)
|
||||
this.shelves = this.shelves.concat(localCategories)
|
||||
|
||||
if (this.user || !this.currentLibraryId) {
|
||||
|
||||
Reference in New Issue
Block a user