logo

pleroma-fe

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

profile_setting_indicator.vue (974B)


  1. <template>
  2. <span
  3. v-if="isProfile"
  4. class="ProfileSettingIndicator"
  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="profilesetting-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: ['isProfile']
  34. }
  35. </script>
  36. <style lang="scss">
  37. .ProfileSettingIndicator {
  38. display: inline-block;
  39. position: relative;
  40. }
  41. .profilesetting-tooltip {
  42. margin: 0.5em 1em;
  43. min-width: 10em;
  44. text-align: center;
  45. }
  46. </style>