logo

pleroma-fe

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

mute_card.vue (978B)


  1. <template>
  2. <basic-user-card :user="user">
  3. <div class="mute-card-content-container">
  4. <button
  5. v-if="muted"
  6. class="btn button-default"
  7. :disabled="progress"
  8. @click="unmuteUser"
  9. >
  10. <template v-if="progress">
  11. {{ $t('user_card.unmute_progress') }}
  12. </template>
  13. <template v-else>
  14. {{ $t('user_card.unmute') }}
  15. </template>
  16. </button>
  17. <button
  18. v-else
  19. class="btn button-default"
  20. :disabled="progress"
  21. @click="muteUser"
  22. >
  23. <template v-if="progress">
  24. {{ $t('user_card.mute_progress') }}
  25. </template>
  26. <template v-else>
  27. {{ $t('user_card.mute') }}
  28. </template>
  29. </button>
  30. </div>
  31. </basic-user-card>
  32. </template>
  33. <script src="./mute_card.js"></script>
  34. <style lang="scss">
  35. .mute-card-content-container {
  36. margin-top: 0.5em;
  37. text-align: right;
  38. button {
  39. width: 10em;
  40. }
  41. }
  42. </style>