Alertbar.vue 846 B

1234567891011121314151617181920212223242526272829303132
  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. <LayoutAlertBarCotisation v-if="isCmf && $can('manage', 'cotisation')"></LayoutAlertBarCotisation>
  10. <LayoutAlertBarSwitchYear></LayoutAlertBarSwitchYear>
  11. </main>
  12. </template>
  13. <script lang="ts">
  14. import { defineComponent, useContext } from '@nuxtjs/composition-api'
  15. import {$organizationProfile} from "~/services/profile/organizationProfile";
  16. export default defineComponent({
  17. setup () {
  18. const { store } = useContext()
  19. const organizationProfile = $organizationProfile(store)
  20. return {
  21. isCmf: organizationProfile.isCmf(),
  22. }
  23. }
  24. })
  25. </script>
  26. <style scoped>
  27. </style>