mirror of
https://github.com/ipfs/ipfs-blog.git
synced 2026-07-05 17:31:21 +02:00
fix: clear filters when query parameters are removed (#78)
This commit is contained in:
@@ -150,11 +150,19 @@ export default {
|
||||
queryProptertyWatchlist() {
|
||||
return `${this.activeCategory}|${this.activeTags}|${this.searchedText}|${this.activeAuthor}`
|
||||
},
|
||||
urlUpdate() {
|
||||
return this.$route.query
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
queryProptertyWatchlist() {
|
||||
this.updateQuery()
|
||||
},
|
||||
urlUpdate() {
|
||||
if (Object.keys(this.$route.query).length === 0) {
|
||||
this.$store.commit('appState/clearFilters')
|
||||
}
|
||||
},
|
||||
},
|
||||
created() {
|
||||
let categories = []
|
||||
|
||||
Reference in New Issue
Block a user