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