mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-25 12:54:08 +02:00
Update:Redirect when changing libraries
This commit is contained in:
@@ -395,6 +395,11 @@ export default {
|
||||
}
|
||||
},
|
||||
libraryChanged() {
|
||||
if (this.currentLibraryMediaType !== 'book' && (this.page === 'series' || this.page === 'collections' || this.page === 'series-books')) {
|
||||
this.$router.replace('/bookshelf')
|
||||
return
|
||||
}
|
||||
|
||||
if (this.hasFilter) {
|
||||
this.clearFilter()
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user