logo

pleroma-fe

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

server_side_indicator.vue (960B)


  1. <template>
  2. <span
  3. v-if="serverSide"
  4. class="ServerSideIndicator"
  5. >
  6. <Popover
  7. trigger="hover"
  8. >
  9. <template #trigger>
  10. &nbsp;
  11. <FAIcon
  12. icon="server"
  13. :aria-label="$t('settings.setting_server_side')"
  14. />
  15. </template>
  16. <template #content>
  17. <div class="serverside-tooltip">
  18. {{ $t('settings.setting_server_side') }}
  19. </div>
  20. </template>
  21. </Popover>
  22. </span>
  23. </template>
  24. <script>
  25. import Popover from 'src/components/popover/popover.vue'
  26. import { library } from '@fortawesome/fontawesome-svg-core'
  27. import { faServer } from '@fortawesome/free-solid-svg-icons'
  28. library.add(
  29. faServer
  30. )
  31. export default {
  32. components: { Popover },
  33. props: ['serverSide']
  34. }
  35. </script>
  36. <style lang="scss">
  37. .ServerSideIndicator {
  38. display: inline-block;
  39. position: relative;
  40. }
  41. .serverside-tooltip {
  42. margin: 0.5em 1em;
  43. min-width: 10em;
  44. text-align: center;
  45. }
  46. </style>