mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-02 09:04:40 +02:00
Update:Add switch server/user button in side drawer and change button text on account page. Update logout to disconnect #628
This commit is contained in:
parent
ce7779607f
commit
59480ad114
4 changed files with 46 additions and 7 deletions
|
@ -332,6 +332,12 @@ export default {
|
|||
},
|
||||
async init() {
|
||||
if (this.isFirstInit) return
|
||||
if (!this.user) {
|
||||
// Offline support not available
|
||||
await this.resetEntities()
|
||||
this.$eventBus.$emit('bookshelf-total-entities', 0)
|
||||
return
|
||||
}
|
||||
|
||||
this.localLibraryItems = await this.$db.getLocalLibraryItems(this.currentLibraryMediaType)
|
||||
console.log('Local library items loaded for lazy bookshelf', this.localLibraryItems.length)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue