mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-15 00:14:52 +02:00
Update:Redirect when changing libraries
This commit is contained in:
parent
716d07c74e
commit
f75a8dfb86
2 changed files with 17 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue