pleroma-fe/src/components/follow_card/follow_card.js

27 lines
736 B
JavaScript
Raw Normal View History

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'
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: {
BasicUserCard,
2019-10-17 16:19:52 +03:00
RemoteFollow,
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() {
return this.$store.state.users.currentUser.id === this.user.id
},
2026-01-06 16:22:52 +02:00
loggedIn() {
return this.$store.state.users.currentUser
2020-04-21 23:27:51 +03:00
},
2026-01-06 16:22:52 +02:00
relationship() {
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