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_confirm.vue (1360B)


  1. <template>
  2. <confirm-modal
  3. v-if="showing"
  4. :title="$t('user_card.mute_confirm_title')"
  5. :confirm-text="$t('user_card.mute_confirm_accept_button')"
  6. :cancel-text="$t('user_card.mute_confirm_cancel_button')"
  7. @accepted="doMute"
  8. @cancelled="hide"
  9. >
  10. <i18n-t
  11. :keypath="keypath"
  12. tag="div"
  13. >
  14. <template #domain>
  15. <span v-text="domain" />
  16. </template>
  17. <template #user>
  18. <span v-text="user.screen_name_ui" />
  19. </template>
  20. </i18n-t>
  21. <div
  22. v-if="type !== 'domain'"
  23. class="mute-expiry"
  24. >
  25. <p>
  26. <label>
  27. {{ $t('user_card.mute_duration_prompt') }}
  28. </label>
  29. <input
  30. v-model="muteExpiryAmount"
  31. type="number"
  32. class="input expiry-amount hide-number-spinner"
  33. :min="0"
  34. >
  35. {{ ' ' }}
  36. <Select
  37. v-model="muteExpiryUnit"
  38. unstyled="true"
  39. class="expiry-unit"
  40. >
  41. <option
  42. v-for="unit in muteExpiryUnits"
  43. :key="unit"
  44. :value="unit"
  45. >
  46. {{ $t(`time.unit.${unit}_short`, ['']) }}
  47. </option>
  48. </Select>
  49. </p>
  50. </div>
  51. </confirm-modal>
  52. </template>
  53. <script src="./mute_confirm.js" />
  54. <style lang="scss">
  55. .expiry-amount {
  56. width: 4em;
  57. text-align: right;
  58. }
  59. </style>