mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-07-28 23:48:45 +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.logout()
|
||||
|
||||
// Redirect to home page
|
||||
if (this.$route.name !== '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) {
|
||||
this.touchEvent = new TouchEvent(e)
|
||||
|
||||
Reference in New Issue
Block a user