logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git

follow_card.js (748B)


  1. import BasicUserCard from '../basic_user_card/basic_user_card.vue'
  2. import RemoteFollow from '../remote_follow/remote_follow.vue'
  3. import FollowButton from '../follow_button/follow_button.vue'
  4. import RemoveFollowerButton from '../remove_follower_button/remove_follower_button.vue'
  5. const FollowCard = {
  6. props: [
  7. 'user',
  8. 'noFollowsYou'
  9. ],
  10. components: {
  11. BasicUserCard,
  12. RemoteFollow,
  13. FollowButton,
  14. RemoveFollowerButton
  15. },
  16. computed: {
  17. isMe () {
  18. return this.$store.state.users.currentUser.id === this.user.id
  19. },
  20. loggedIn () {
  21. return this.$store.state.users.currentUser
  22. },
  23. relationship () {
  24. return this.$store.getters.relationship(this.user.id)
  25. }
  26. }
  27. }
  28. export default FollowCard