mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-28 14:17:19 +02:00
Fix disconnect in side drawer causing audio playing with player closed #1385
This commit is contained in:
@@ -183,11 +183,18 @@ export default {
|
|||||||
await this.$hapticsImpact()
|
await this.$hapticsImpact()
|
||||||
await this.logout()
|
await this.logout()
|
||||||
|
|
||||||
|
// Redirect to home page
|
||||||
if (this.$route.name !== 'bookshelf') {
|
if (this.$route.name !== 'bookshelf') {
|
||||||
this.$router.replace('/bookshelf')
|
this.$router.replace('/bookshelf')
|
||||||
} else {
|
|
||||||
location.reload()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If player is open and not playing locally, then close the player
|
||||||
|
if (this.$store.getters['getIsPlayerOpen']) {
|
||||||
|
this.$eventBus.$emit('close-stream')
|
||||||
|
}
|
||||||
|
|
||||||
|
// Close side drawer
|
||||||
|
this.show = false
|
||||||
},
|
},
|
||||||
touchstart(e) {
|
touchstart(e) {
|
||||||
this.touchEvent = new TouchEvent(e)
|
this.touchEvent = new TouchEvent(e)
|
||||||
|
|||||||
@@ -74,6 +74,12 @@ export default {
|
|||||||
console.log(`[categories] networkConnected false so fetching categories`)
|
console.log(`[categories] networkConnected false so fetching categories`)
|
||||||
this.fetchCategories()
|
this.fetchCategories()
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
user(newVal, oldVal) {
|
||||||
|
if ((newVal && !oldVal) || (!newVal && oldVal)) {
|
||||||
|
console.log(`[categories] user changed so fetching categories`)
|
||||||
|
this.fetchCategories()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
Reference in New Issue
Block a user