* Update app to hide top nav filter panel on page change (#1479)
This commit is contained in:
parent
aa992c1b77
commit
1ff6617ff2
|
@ -99,7 +99,12 @@ export default Vue.extend({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
windowTitle: 'setWindowTitle'
|
windowTitle: 'setWindowTitle',
|
||||||
|
$route () {
|
||||||
|
// react to route changes...
|
||||||
|
// Hide top nav filter panel on page change
|
||||||
|
this.$refs.topNav.hideFilters()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this.setWindowTitle()
|
this.setWindowTitle()
|
||||||
|
|
|
@ -280,6 +280,9 @@ export default Vue.extend({
|
||||||
navigate: function (route) {
|
navigate: function (route) {
|
||||||
this.$router.push('/' + route)
|
this.$router.push('/' + route)
|
||||||
},
|
},
|
||||||
|
hideFilters: function () {
|
||||||
|
this.showFilters = false
|
||||||
|
},
|
||||||
...mapActions([
|
...mapActions([
|
||||||
'showToast',
|
'showToast',
|
||||||
'getYoutubeUrlInfo',
|
'getYoutubeUrlInfo',
|
||||||
|
|
Loading…
Reference in New Issue