AlertBar.vue 760 B

123456789101112131415161718192021222324252627282930313233
  1. <!--
  2. Alert bars
  3. Contient les différentes barres d'alertes qui s'affichent dans certains cas
  4. -->
  5. <template>
  6. <main>
  7. <LayoutAlertBarEnv />
  8. <LayoutAlertBarSwitchUser />
  9. <client-only>
  10. <LayoutAlertBarCotisation
  11. v-if="organizationProfile.isCmf && ability.can('manage', 'cotisation')"
  12. />
  13. </client-only>
  14. <LayoutAlertBarSwitchYear />
  15. <LayoutAlertBarSuperAdmin />
  16. <LayoutAlertBarRegistrationStatus
  17. v-if="organizationProfile.hasModule('IEL')"
  18. />
  19. </main>
  20. </template>
  21. <script setup lang="ts">
  22. import { useOrganizationProfileStore } from '~/stores/organizationProfile'
  23. import { useAbility } from '@casl/vue'
  24. const organizationProfile = useOrganizationProfileStore()
  25. const ability = useAbility()
  26. </script>