mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-01 13:39:41 +00:00
Reset filters and search when switching libraries
This commit is contained in:
parent
f7506e84d3
commit
8f189763f0
5 changed files with 47 additions and 3 deletions
|
|
@ -128,6 +128,13 @@ export default {
|
|||
return this.bookResults.length + this.seriesResults.length + this.authorResults.length + this.tagResults.length + this.genreResults.length + this.podcastResults.length + this.narratorResults.length + this.episodeResults.length
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
currentLibraryId(newVal, oldVal) {
|
||||
if (newVal && oldVal && newVal !== oldVal) {
|
||||
this.clearResults()
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
clickOption() {
|
||||
this.clearResults()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue