default.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <div>
  3. <!-- Show the loading page -->
  4. <client-only placeholder-tag="client-only-placeholder" placeholder=" " />
  5. <v-app>
  6. <LayoutLoadingScreen />
  7. <LayoutHeader />
  8. <LayoutMainMenu>
  9. <template #prepend>
  10. <LayoutUpgradePremiumButton
  11. :show="showUpgradePremiumButton"
  12. />
  13. </template>
  14. </LayoutMainMenu>
  15. <v-main class="main">
  16. <LayoutSubheader />
  17. <LayoutAlertBar class="mt-1" />
  18. <!-- Page will be rendered here-->
  19. <slot />
  20. </v-main>
  21. <LazyLayoutAlertContainer />
  22. </v-app>
  23. </div>
  24. </template>
  25. <script setup lang="ts">
  26. import { useLayoutStore } from '~/stores/layout'
  27. const layoutStore = useLayoutStore()
  28. layoutStore.name = 'default'
  29. const accessProfile = useAccessProfileStore()
  30. const organizationProfile = useOrganizationProfileStore()
  31. const showUpgradePremiumButton: ComputedRef<boolean> = computed(() =>
  32. ((organizationProfile.isArtistProduct || organizationProfile.isTrialActive) && (accessProfile.isCaMember || accessProfile.isAdmin)) ?? false
  33. )
  34. </script>