Skip to content

Commit

Permalink
Fix:Continue listening shelves show on initial failed connection #1038
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Feb 9, 2024
1 parent 826d414 commit e15c1bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 0 additions & 2 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
11 changes: 6 additions & 5 deletions pages/bookshelf/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e15c1bc

Please sign in to comment.