logo

pleroma-fe

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

remove_follower_button.vue (1021B)


  1. <template>
  2. <button
  3. class="btn button-default follow-button"
  4. :class="{ toggled: inProgress }"
  5. :disabled="inProgress"
  6. :title="$t('user_card.remove_follower')"
  7. @click="onClick"
  8. >
  9. {{ label }}
  10. <teleport to="#modal">
  11. <confirm-modal
  12. v-if="showingConfirmRemoveFollower"
  13. :title="$t('user_card.remove_follower_confirm_title')"
  14. :confirm-text="$t('user_card.remove_follower_confirm_accept_button')"
  15. :cancel-text="$t('user_card.remove_follower_confirm_cancel_button')"
  16. @accepted="doRemoveUserFromFollowers"
  17. @cancelled="hideConfirmRemoveUserFromFollowers"
  18. >
  19. <i18n-t
  20. scope="global"
  21. keypath="user_card.remove_follower_confirm"
  22. tag="span"
  23. >
  24. <template #user>
  25. <span
  26. v-text="user.screen_name_ui"
  27. />
  28. </template>
  29. </i18n-t>
  30. </confirm-modal>
  31. </teleport>
  32. </button>
  33. </template>
  34. <script src="./remove_follower_button.js"></script>