pleroma-fe/src/components/follow_card/follow_card.js
Maksim Pechnikov b3f590ceb3 clear code
2019-10-17 20:29:18 +03:00

25 lines
545 B
JavaScript

import BasicUserCard from '../basic_user_card/basic_user_card.vue'
import RemoteFollow from '../remote_follow/remote_follow.vue'
import FollowButton from '../follow_button/follow_button.vue'
const FollowCard = {
props: [
'user',
'noFollowsYou'
],
components: {
BasicUserCard,
RemoteFollow,
FollowButton
},
computed: {
isMe () {
return this.$store.state.users.currentUser.id === this.user.id
},
loggedIn () {
return this.$store.state.users.currentUser
}
}
}
export default FollowCard