2019-02-25 22:51:04 -05:00
|
|
|
import BasicUserCard from '../basic_user_card/basic_user_card.vue'
|
2019-10-17 16:19:52 +03:00
|
|
|
import FollowButton from '../follow_button/follow_button.vue'
|
2026-01-06 16:23:17 +02:00
|
|
|
import RemoteFollow from '../remote_follow/remote_follow.vue'
|
2022-09-17 11:36:34 -06:00
|
|
|
import RemoveFollowerButton from '../remove_follower_button/remove_follower_button.vue'
|
2019-02-25 22:51:04 -05:00
|
|
|
|
|
|
|
|
const FollowCard = {
|
2026-01-06 16:22:52 +02:00
|
|
|
props: ['user', 'noFollowsYou'],
|
2019-02-25 22:51:04 -05:00
|
|
|
components: {
|
2019-03-19 14:36:27 -04:00
|
|
|
BasicUserCard,
|
2019-10-17 16:19:52 +03:00
|
|
|
RemoteFollow,
|
2022-09-17 11:36:34 -06:00
|
|
|
FollowButton,
|
2026-01-06 16:22:52 +02:00
|
|
|
RemoveFollowerButton,
|
2019-02-25 22:51:04 -05:00
|
|
|
},
|
|
|
|
|
computed: {
|
2026-01-06 16:22:52 +02:00
|
|
|
isMe() {
|
2019-04-11 16:34:46 -04:00
|
|
|
return this.$store.state.users.currentUser.id === this.user.id
|
2019-03-19 14:36:27 -04:00
|
|
|
},
|
2026-01-06 16:22:52 +02:00
|
|
|
loggedIn() {
|
2019-03-19 14:36:27 -04:00
|
|
|
return this.$store.state.users.currentUser
|
2020-04-21 23:27:51 +03:00
|
|
|
},
|
2026-01-06 16:22:52 +02:00
|
|
|
relationship() {
|
2020-04-24 18:53:17 +03:00
|
|
|
return this.$store.getters.relationship(this.user.id)
|
2026-01-06 16:22:52 +02:00
|
|
|
},
|
|
|
|
|
},
|
2019-02-25 22:51:04 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default FollowCard
|