logo

pleroma-fe

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

remove_follower_button.vue (996B)


  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. keypath="user_card.remove_follower_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="./remove_follower_button.js"></script>