Alertbar.vue 931 B

123456789101112131415161718192021222324252627282930313233
  1. <!--
  2. Alert bars
  3. Contient les différentes barre d'alertes qui s'affichent selon certains cas...
  4. -->
  5. <template>
  6. <main>
  7. <client-only><LayoutAlertBarEnv></LayoutAlertBarEnv></client-only>
  8. <LayoutAlertBarSwitchUser></LayoutAlertBarSwitchUser>
  9. <client-only><LayoutAlertBarCotisation v-if="isCmf && $can('manage', 'cotisation')"></LayoutAlertBarCotisation></client-only>
  10. <LayoutAlertBarSwitchYear></LayoutAlertBarSwitchYear>
  11. <LayoutAlertBarSuperAdmin></LayoutAlertBarSuperAdmin>
  12. </main>
  13. </template>
  14. <script lang="ts">
  15. import { defineComponent, useContext } from '@nuxtjs/composition-api'
  16. import {$organizationProfile} from "~/services/profile/organizationProfile";
  17. export default defineComponent({
  18. setup () {
  19. const { store } = useContext()
  20. const organizationProfile = $organizationProfile(store)
  21. return {
  22. isCmf: organizationProfile.isCmf(),
  23. }
  24. }
  25. })
  26. </script>
  27. <style scoped>
  28. </style>