AlertBar.vue 708 B

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