aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_profile
diff options
context:
space:
mode:
authordave <starpumadev@gmail.com>2019-03-03 13:38:48 -0500
committerdave <starpumadev@gmail.com>2019-03-03 13:38:48 -0500
commit5a0bb29f02349aed4a7948b963ff0a78d3975237 (patch)
treef844d49b5fad61a41d3765dce82cbb27bafa7955 /src/components/user_profile
parent3d30ad1dda8f31960586625bb6a432d6b3adde8e (diff)
#417: reset tab from the outside
Diffstat (limited to 'src/components/user_profile')
-rw-r--r--src/components/user_profile/user_profile.js3
-rw-r--r--src/components/user_profile/user_profile.vue2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js
index 7708141c..cdf1cee9 100644
--- a/src/components/user_profile/user_profile.js
+++ b/src/components/user_profile/user_profile.js
@@ -141,6 +141,9 @@ const UserProfile = {
}
this.cleanUp()
this.startUp()
+ },
+ $route () {
+ this.$refs.tabSwitcher.activateTab(0)()
}
},
components: {
diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue
index 54f1b97b..8090efa5 100644
--- a/src/components/user_profile/user_profile.vue
+++ b/src/components/user_profile/user_profile.vue
@@ -6,7 +6,7 @@
:switcher="true"
:selected="timeline.viewing"
/>
- <tab-switcher :refresh="true" :renderOnlyFocused="true">
+ <tab-switcher :renderOnlyFocused="true" ref="tabSwitcher">
<Timeline
:label="$t('user_card.statuses')"
:disabled="!user.statuses_count"