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