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
Joseph Nuthalapati
pleroma-fe
Commits
5881d92e
Commit
5881d92e
authored
Jul 23, 2019
by
Tae Hoon
Browse files
use $route instead of $router.currentRoute
parent
7c298206
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/user_card/user_card.js
View file @
5881d92e
...
...
@@ -104,8 +104,7 @@ export default {
},
isActiveRoute
()
{
const
profileRoute
=
this
.
userProfileLink
(
this
.
user
)
const
currentRoute
=
this
.
$router
.
currentRoute
return
profileRoute
.
name
===
currentRoute
.
name
&&
isEqual
(
profileRoute
.
params
,
currentRoute
.
params
)
return
profileRoute
.
name
===
this
.
$route
.
name
&&
isEqual
(
profileRoute
.
params
,
this
.
$route
.
params
)
}
},
components
:
{
...
...
Write
Preview
Supports
Markdown
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