aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordave <starpumadev@gmail.com>2019-03-03 12:15:55 -0500
committerdave <starpumadev@gmail.com>2019-03-03 12:15:55 -0500
commit10711f904508fe2338c354637fd4ebd2e0abb4f0 (patch)
tree8efb8b049d67f99ce61bf011767f19d1e2d221d2 /src
parent068da3cf9f22f83da17051b8db5cde597f624fdf (diff)
#417: reset tab status when active user changes
Diffstat (limited to 'src')
-rw-r--r--src/components/tab_switcher/tab_switcher.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/tab_switcher/tab_switcher.js b/src/components/tab_switcher/tab_switcher.js
index 423df258..1de936e8 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 () => {