#417: reset tab status when active user changes

mastoapi/is-local-post
dave 6 years ago
parent 068da3cf9f
commit 10711f9045

@ -10,6 +10,11 @@ export default Vue.component('tab-switcher', {
active: this.$slots.default.findIndex(_ => _.tag)
}
},
watch: {
$route () {
this.activateTab(0)
}
},
methods: {
activateTab (index) {
return () => {

Loading…
Cancel
Save