Fix:Continue listening shelves show on initial failed connection #1038

This commit is contained in:
advplyr 2024-02-09 17:52:24 -06:00
parent 826d414d9f
commit e15c1bcb32
2 changed files with 6 additions and 7 deletions

View file

@ -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 {

View file

@ -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()