Refactor capacitor plugins, clean up and organize android plugin classes

This commit is contained in:
advplyr
2022-04-04 19:08:27 -05:00
parent cc744bb975
commit 77ef0c119b
26 changed files with 376 additions and 385 deletions
+5 -2
View File
@@ -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) {