logo

pleroma-fe

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

follow_request_card.vue (1656B)


  1. <template>
  2. <basic-user-card :user="user">
  3. <div class="follow-request-card-content-container">
  4. <button
  5. class="btn button-default"
  6. @click="approveUser"
  7. >
  8. {{ $t('user_card.approve') }}
  9. </button>
  10. <button
  11. class="btn button-default"
  12. @click="denyUser"
  13. >
  14. {{ $t('user_card.deny') }}
  15. </button>
  16. </div>
  17. <teleport to="#modal">
  18. <confirm-modal
  19. v-if="showingApproveConfirmDialog"
  20. :title="$t('user_card.approve_confirm_title')"
  21. :confirm-text="$t('user_card.approve_confirm_accept_button')"
  22. :cancel-text="$t('user_card.approve_confirm_cancel_button')"
  23. @accepted="doApprove"
  24. @cancelled="hideApproveConfirmDialog"
  25. >
  26. {{ $t('user_card.approve_confirm', { user: user.screen_name_ui }) }}
  27. </confirm-modal>
  28. <confirm-modal
  29. v-if="showingDenyConfirmDialog"
  30. :title="$t('user_card.deny_confirm_title')"
  31. :confirm-text="$t('user_card.deny_confirm_accept_button')"
  32. :cancel-text="$t('user_card.deny_confirm_cancel_button')"
  33. @accepted="doDeny"
  34. @cancelled="hideDenyConfirmDialog"
  35. >
  36. {{ $t('user_card.deny_confirm', { user: user.screen_name_ui }) }}
  37. </confirm-modal>
  38. </teleport>
  39. </basic-user-card>
  40. </template>
  41. <script src="./follow_request_card.js"></script>
  42. <style lang="scss">
  43. .follow-request-card-content-container {
  44. display: flex;
  45. flex-flow: row wrap;
  46. button {
  47. margin-top: 0.5em;
  48. margin-right: 0.5em;
  49. flex: 1 1;
  50. max-width: 12em;
  51. min-width: 8em;
  52. &:last-child {
  53. margin-right: 0;
  54. }
  55. }
  56. }
  57. </style>