From 10711f904508fe2338c354637fd4ebd2e0abb4f0 Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 3 Mar 2019 12:15:55 -0500 Subject: [PATCH] #417: reset tab status when active user changes --- src/components/tab_switcher/tab_switcher.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/tab_switcher/tab_switcher.js b/src/components/tab_switcher/tab_switcher.js index 423df258ab..1de936e887 100644 --- a/src/components/tab_switcher/tab_switcher.js +++ b/src/components/tab_switcher/tab_switcher.js @@ -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 () => {