Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Hau Vo
pleroma-fe
Commits
3d30ad1d
Commit
3d30ad1d
authored
Mar 03, 2019
by
Dave LiPuma
Browse files
#417: refresh tab on user profile only
parent
10711f90
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/components/tab_switcher/tab_switcher.js
View file @
3d30ad1d
...
...
@@ -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
:
{
...
...
src/components/user_profile/user_profile.vue
View file @
3d30ad1d
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment