Hide 'My Profile' when not authenticated

This commit is contained in:
2024-10-07 13:55:51 -04:00
parent 92c025a344
commit d1762e803c
3 changed files with 35 additions and 28 deletions

View File

@@ -6,7 +6,7 @@
<side-bar></side-bar> <side-bar></side-bar>
</div> </div>
<div class="flex flex-col pl-60 w-full min-h-screen "> <div class="pl-60 w-full min-h-screen flex justify-center items-center bg-green">
<router-view></router-view> <router-view></router-view>
</div> </div>

View File

@@ -1,7 +1,7 @@
<template> <template>
<div :style="{ backgroundColor: brandingStore.value.colors.background }" class="flex flex-col min-h-screen"> <div :style="{ backgroundColor: brandingStore.value.colors.background }">
<div class="flex-grow">
<div class="max-w-[1500px] mx-auto"> <div class="flex flex-col min-h-screen max-w-[1500px] mx-auto">
<div v-if="brandingStore.loading"> <div v-if="brandingStore.loading">
<v-progress-linear indeterminate></v-progress-linear> <v-progress-linear indeterminate></v-progress-linear>
@@ -10,19 +10,24 @@
<creator-banner></creator-banner> <creator-banner></creator-banner>
</div> </div>
<div class="w-full py-10"> <div class="py-8 flex-grow">
<router-view></router-view> <router-view></router-view>
</div> </div>
</div> <div>
</div>
<Footer></Footer> <Footer></Footer>
</div> </div>
</div>
</div>
</template> </template>
<script async setup> <script async setup>
import CreatorBanner from "@/views/creators/CreatorBanner.vue"; import CreatorBanner from "@/views/creators/CreatorBanner.vue";
import Footer from "@/views/main/Footer.vue"; import Footer from "@/views/main/Footer.vue";
import {useBrandingStore} from "@/stores/brandingStore.js"; import {useBrandingStore} from "@/stores/brandingStore.js";
const brandingStore = useBrandingStore() const brandingStore = useBrandingStore()
</script> </script>

View File

@@ -96,12 +96,14 @@ initializeLocale();
<!-- CREATE CONTENT --> <!-- CREATE CONTENT -->
<!-- PROFILE --> <!-- PROFILE -->
<template v-if="authStore.isAuthenticated">
<v-btn to="/profile" <v-btn to="/profile"
class="w-full justify-start" class="w-full justify-start"
prepend-icon="mdi-account" prepend-icon="mdi-account"
variant="flat"> variant="flat">
{{ $t('header.myprofile') }} {{ $t('header.myprofile') }}
</v-btn> </v-btn>
</template>
<!-- LANGUAGE --> <!-- LANGUAGE -->
<v-btn <v-btn