Commit 3d30ad1d authored by Dave LiPuma's avatar Dave LiPuma

#417: refresh tab on user profile only

parent 10711f90
......@@ -4,7 +4,7 @@ import './tab_switcher.scss'
export default Vue.component('tab-switcher', {
name: 'TabSwitcher',
props: ['renderOnlyFocused'],
props: ['refresh', 'renderOnlyFocused'],
data () {
return {
active: this.$slots.default.findIndex(_ => _.tag)
......@@ -12,7 +12,9 @@ export default Vue.component('tab-switcher', {
},
watch: {
$route () {
this.activateTab(0)
if (this.refresh) {
this.active = 0
}
}
},
methods: {
......
......@@ -6,7 +6,7 @@
:switcher="true"
:selected="timeline.viewing"
/>
<tab-switcher :renderOnlyFocused="true">
<tab-switcher :refresh="true" :renderOnlyFocused="true">
<Timeline
:label="$t('user_card.statuses')"
:disabled="!user.statuses_count"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment