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
f1953dcb
Commit
f1953dcb
authored
Jan 22, 2017
by
Jiayi Zheng
Browse files
Fixes #14 only display follow button if user is logged in
parent
b98a6fe5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/user_card_content/user_card_content.vue
View file @
f1953dcb
...
...
@@ -6,7 +6,7 @@
<span
class=
"glyphicon glyphicon-user"
></span>
<div
class=
'user-name'
>
{{
user
.
name
}}
</div>
<div
class=
'user-screen-name'
>
@
{{
user
.
screen_name
}}
</div>
<div
v-if=
"isOtherUser"
class=
"following-info"
>
<div
v-if=
"isOtherUser
&& loggedIn
"
class=
"following-info"
>
<div
v-if=
"user.follows_you"
class=
"following"
>
Follows you!
</div>
...
...
@@ -58,6 +58,9 @@
},
isOtherUser
()
{
return
this
.
user
!==
this
.
$store
.
state
.
users
.
currentUser
},
loggedIn
()
{
return
!!
this
.
$store
.
state
.
users
.
currentUser
}
},
methods
:
{
...
...
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