logo

pleroma-fe

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

scope_selector.vue (1607B)


  1. <template>
  2. <div
  3. v-if="!showNothing"
  4. class="ScopeSelector"
  5. >
  6. <button
  7. v-if="showDirect"
  8. class="button-unstyled scope"
  9. :class="css.direct"
  10. :title="$t('post_status.scope.direct')"
  11. type="button"
  12. @click="changeVis('direct')"
  13. >
  14. <FAIcon
  15. icon="envelope"
  16. class="fa-scale-110 fa-old-padding"
  17. />
  18. </button>
  19. {{ ' ' }}
  20. <button
  21. v-if="showPrivate"
  22. class="button-unstyled scope"
  23. :class="css.private"
  24. :title="$t('post_status.scope.private')"
  25. type="button"
  26. @click="changeVis('private')"
  27. >
  28. <FAIcon
  29. icon="lock"
  30. class="fa-scale-110 fa-old-padding"
  31. />
  32. </button>
  33. {{ ' ' }}
  34. <button
  35. v-if="showUnlisted"
  36. class="button-unstyled scope"
  37. :class="css.unlisted"
  38. :title="$t('post_status.scope.unlisted')"
  39. type="button"
  40. @click="changeVis('unlisted')"
  41. >
  42. <FAIcon
  43. icon="lock-open"
  44. class="fa-scale-110 fa-old-padding"
  45. />
  46. </button>
  47. {{ ' ' }}
  48. <button
  49. v-if="showPublic"
  50. class="button-unstyled scope"
  51. :class="css.public"
  52. :title="$t('post_status.scope.public')"
  53. type="button"
  54. @click="changeVis('public')"
  55. >
  56. <FAIcon
  57. icon="globe"
  58. class="fa-scale-110 fa-old-padding"
  59. />
  60. </button>
  61. </div>
  62. </template>
  63. <script src="./scope_selector.js"></script>
  64. <style lang="scss">
  65. .ScopeSelector {
  66. .scope {
  67. display: inline-block;
  68. cursor: pointer;
  69. min-width: 1.3em;
  70. min-height: 1.3em;
  71. text-align: center;
  72. }
  73. }
  74. </style>