SwitchUser.vue 941 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!--
  2. Switch user
  3. Barre qui s'affiche lorsque l'utilisateur possède un compte multi user
  4. -->
  5. <template>
  6. <UiSystemBar v-if="show" class="theme-info">
  7. <v-icon small icon="fas fa-info-circle" />
  8. <span>
  9. {{ $t('multi_account_alert_part1') }} <strong>{{ fullName }}</strong> {{ $t('multi_account_alert_part2') }}
  10. </span>
  11. <v-icon class="pl-1" small icon="fa fa-users"/> &nbsp;{{$t('multi_account_alert_part3')}}
  12. </UiSystemBar>
  13. </template>
  14. <script setup lang="ts">
  15. import {useAccessProfileStore} from "~/stores/accessProfile";
  16. import {useMenu} from "~/composables/layout/useMenu";
  17. const accessProfile = useAccessProfileStore()
  18. const { hasMenu } = useMenu()
  19. const show = computed(() => hasMenu('MyFamily'))
  20. const fullName = `${accessProfile.givenName} ${accessProfile.name}`
  21. </script>
  22. <style scoped lang="scss">
  23. .v-system-bar {
  24. font-size: 14px;
  25. }
  26. .v-icon {
  27. height: 20px;
  28. margin: 0 6px;
  29. }
  30. </style>