2019-02-26 03:51:04 +00:00
|
|
|
import BasicUserCard from '../basic_user_card/basic_user_card.vue'
|
2019-03-19 18:36:27 +00:00
|
|
|
import RemoteFollow from '../remote_follow/remote_follow.vue'
|
2019-10-17 13:19:52 +00:00
|
|
|
import FollowButton from '../follow_button/follow_button.vue'
|
2019-02-26 03:51:04 +00:00
|
|
|
|
|
|
|
const FollowCard = {
|
|
|
|
props: [
|
|
|
|
'user',
|
|
|
|
'noFollowsYou'
|
|
|
|
],
|
|
|
|
components: {
|
2019-03-19 18:36:27 +00:00
|
|
|
BasicUserCard,
|
2019-10-17 13:19:52 +00:00
|
|
|
RemoteFollow,
|
|
|
|
FollowButton
|
2019-02-26 03:51:04 +00:00
|
|
|
},
|
|
|
|
computed: {
|
2019-04-11 20:34:46 +00:00
|
|
|
isMe () {
|
|
|
|
return this.$store.state.users.currentUser.id === this.user.id
|
2019-03-19 18:36:27 +00:00
|
|
|
},
|
|
|
|
loggedIn () {
|
|
|
|
return this.$store.state.users.currentUser
|
2020-04-21 20:27:51 +00:00
|
|
|
},
|
|
|
|
relationship () {
|
2020-04-24 15:53:17 +00:00
|
|
|
return this.$store.getters.relationship(this.user.id)
|
2019-02-26 03:51:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default FollowCard
|