* Update app to hide top nav filter panel on page change (#1479)

This commit is contained in:
PikachuEXE 2021-09-14 01:26:08 +08:00 committed by GitHub
parent aa992c1b77
commit 1ff6617ff2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -99,7 +99,12 @@ export default Vue.extend({
}
},
watch: {
windowTitle: 'setWindowTitle'
windowTitle: 'setWindowTitle',
$route () {
// react to route changes...
// Hide top nav filter panel on page change
this.$refs.topNav.hideFilters()
}
},
created () {
this.setWindowTitle()

View File

@ -280,6 +280,9 @@ export default Vue.extend({
navigate: function (route) {
this.$router.push('/' + route)
},
hideFilters: function () {
this.showFilters = false
},
...mapActions([
'showToast',
'getYoutubeUrlInfo',