follow_request_card.vue 750 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. </basic-user-card>
  18. </template>
  19. <script src="./follow_request_card.js"></script>
  20. <style lang="scss">
  21. .follow-request-card-content-container {
  22. display: flex;
  23. flex-flow: row wrap;
  24. button {
  25. margin-top: 0.5em;
  26. margin-right: 0.5em;
  27. flex: 1 1;
  28. max-width: 12em;
  29. min-width: 8em;
  30. &:last-child {
  31. margin-right: 0;
  32. }
  33. }
  34. }
  35. </style>