logo

pleroma-fe

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

follow_button.vue (894B)


  1. <template>
  2. <button
  3. class="btn button-default follow-button"
  4. :class="{ toggled: isPressed }"
  5. :disabled="disabled"
  6. :title="title"
  7. @click="onClick"
  8. >
  9. {{ label }}
  10. <teleport to="#modal">
  11. <confirm-modal
  12. v-if="showingConfirmUnfollow"
  13. :title="$t('user_card.unfollow_confirm_title')"
  14. :confirm-text="$t('user_card.unfollow_confirm_accept_button')"
  15. :cancel-text="$t('user_card.unfollow_confirm_cancel_button')"
  16. @accepted="doUnfollow"
  17. @cancelled="hideConfirmUnfollow"
  18. >
  19. <i18n-t
  20. keypath="user_card.unfollow_confirm"
  21. tag="span"
  22. >
  23. <template #user>
  24. <span
  25. v-text="user.screen_name_ui"
  26. />
  27. </template>
  28. </i18n-t>
  29. </confirm-modal>
  30. </teleport>
  31. </button>
  32. </template>
  33. <script src="./follow_button.js"></script>