mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-26 12:35:26 +02:00
Fix:Continue listening shelves show on initial failed connection #1038
This commit is contained in:
parent
826d414d9f
commit
e15c1bcb32
2 changed files with 6 additions and 7 deletions
|
@ -326,8 +326,6 @@ export default {
|
||||||
|
|
||||||
await this.$store.dispatch('setupNetworkListener')
|
await this.$store.dispatch('setupNetworkListener')
|
||||||
|
|
||||||
await this.$store.dispatch('globals/loadLocalMediaProgress')
|
|
||||||
|
|
||||||
if (this.$store.state.user.serverConnectionConfig) {
|
if (this.$store.state.user.serverConnectionConfig) {
|
||||||
await this.initLibraries()
|
await this.initLibraries()
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -327,14 +327,15 @@ export default {
|
||||||
this.$eventBus.$off('library-changed', this.libraryChanged)
|
this.$eventBus.$off('library-changed', this.libraryChanged)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
async mounted() {
|
||||||
this.initListeners()
|
|
||||||
console.log(`[categories] mounted so fetching categories`)
|
|
||||||
this.fetchCategories()
|
|
||||||
|
|
||||||
if (this.$route.query.error) {
|
if (this.$route.query.error) {
|
||||||
this.$toast.error(this.$route.query.error)
|
this.$toast.error(this.$route.query.error)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.initListeners()
|
||||||
|
await this.$store.dispatch('globals/loadLocalMediaProgress')
|
||||||
|
console.log(`[categories] mounted so fetching categories`)
|
||||||
|
this.fetchCategories()
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
this.removeListeners()
|
this.removeListeners()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue