AlertBar.vue 742 B

1234567891011121314151617181920212223242526272829
  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 v-if="organizationProfile.isCmf && ability.can('manage', 'cotisation')" />
  11. </client-only>
  12. <LayoutAlertBarSwitchYear />
  13. <LayoutAlertBarSuperAdmin />
  14. <LayoutAlertBarRegistrationStatus v-if="organizationProfile.hasModule('IEL')" />
  15. </main>
  16. </template>
  17. <script setup lang="ts">
  18. import {useOrganizationProfileStore} from "~/stores/organizationProfile";
  19. import {useAbility} from "@casl/vue";
  20. const organizationProfile = useOrganizationProfileStore()
  21. const ability = useAbility()
  22. </script>