From e15c1bcb32a85e59b8d1085e0e1d07b0aaba63ec Mon Sep 17 00:00:00 2001 From: advplyr Date: Fri, 9 Feb 2024 17:52:24 -0600 Subject: [PATCH] Fix:Continue listening shelves show on initial failed connection #1038 --- layouts/default.vue | 2 -- pages/bookshelf/index.vue | 11 ++++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/layouts/default.vue b/layouts/default.vue index 243aac92..29520470 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -326,8 +326,6 @@ export default { await this.$store.dispatch('setupNetworkListener') - await this.$store.dispatch('globals/loadLocalMediaProgress') - if (this.$store.state.user.serverConnectionConfig) { await this.initLibraries() } else { diff --git a/pages/bookshelf/index.vue b/pages/bookshelf/index.vue index 4e33c295..c41ddfc6 100644 --- a/pages/bookshelf/index.vue +++ b/pages/bookshelf/index.vue @@ -327,14 +327,15 @@ export default { this.$eventBus.$off('library-changed', this.libraryChanged) } }, - mounted() { - this.initListeners() - console.log(`[categories] mounted so fetching categories`) - this.fetchCategories() - + async mounted() { if (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() { this.removeListeners()