| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <template>
- <div>
- <!-- Show the loading page -->
- <client-only placeholder-tag="client-only-placeholder" placeholder=" " />
- <v-app>
- <LayoutLoadingScreen />
- <LayoutDialogRefreshNeeded />
- <LayoutHeader />
- <LayoutMainMenu>
- <template #prepend="{ isRail }">
- <LayoutUpgradePremiumButton
- v-if="showUpgradePremiumButton"
- :minimized="isRail"
- />
- </template>
- </LayoutMainMenu>
- <v-main class="main">
- <LayoutSubheader />
- <LayoutAlertBar />
- <!-- Page will be rendered here-->
- <slot />
- </v-main>
- <LazyLayoutAlertContainer />
- </v-app>
- </div>
- </template>
- <script setup lang="ts">
- import { useLayoutStore } from '~/stores/layout'
- const layoutStore = useLayoutStore()
- layoutStore.name = 'default'
- const accessProfile = useAccessProfileStore()
- const organizationProfile = useOrganizationProfileStore()
- const showUpgradePremiumButton: ComputedRef<boolean> = computed(
- () =>
- ((organizationProfile.isArtistProduct ||
- organizationProfile.isTrialActive) &&
- (accessProfile.isCaMember || accessProfile.isAdmin)) ??
- false,
- )
- </script>
|