Hide 'My Profile' when not authenticated
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -1,28 +1,33 @@
|
|||||||
<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 v-if="brandingStore.loading">
|
<div class="flex flex-col min-h-screen max-w-[1500px] mx-auto">
|
||||||
<v-progress-linear indeterminate></v-progress-linear>
|
|
||||||
</div>
|
|
||||||
<div v-else>
|
|
||||||
<creator-banner></creator-banner>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="w-full py-10">
|
|
||||||
<router-view></router-view>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<div v-if="brandingStore.loading">
|
||||||
|
<v-progress-linear indeterminate></v-progress-linear>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
<creator-banner></creator-banner>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="py-8 flex-grow">
|
||||||
|
<router-view></router-view>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<Footer></Footer>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<Footer></Footer>
|
|
||||||
</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>
|
||||||
|
|||||||
@@ -59,13 +59,13 @@ initializeLocale();
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<v-divider class="my-4" style="border-width: 1px; border-color: black;"></v-divider>
|
<v-divider class="my-4" style="border-width: 1px; border-color: black;"></v-divider>
|
||||||
<!-- USER SECTION -->
|
<!-- USER SECTION -->
|
||||||
<div class="px-4 mb-4">
|
<div class="px-4 mb-4">
|
||||||
<div class="flex items-center justify-start p-2 mb-4">
|
<div class="flex items-center justify-start p-2 mb-4">
|
||||||
<img
|
<img
|
||||||
:src="userProfileStore.portraitUrl"
|
:src="userProfileStore.portraitUrl"
|
||||||
alt="Profile Image"
|
alt="Profile Image"
|
||||||
referrerpolicy="no-referrer"
|
referrerpolicy="no-referrer"
|
||||||
class="rounded-full"
|
class="rounded-full"
|
||||||
width="42"
|
width="42"
|
||||||
height="42"
|
height="42"
|
||||||
@@ -96,12 +96,14 @@ initializeLocale();
|
|||||||
<!-- CREATE CONTENT -->
|
<!-- CREATE CONTENT -->
|
||||||
|
|
||||||
<!-- PROFILE -->
|
<!-- PROFILE -->
|
||||||
<v-btn to="/profile"
|
<template v-if="authStore.isAuthenticated">
|
||||||
class="w-full justify-start"
|
<v-btn to="/profile"
|
||||||
prepend-icon="mdi-account"
|
class="w-full justify-start"
|
||||||
variant="flat">
|
prepend-icon="mdi-account"
|
||||||
{{ $t('header.myprofile') }}
|
variant="flat">
|
||||||
</v-btn>
|
{{ $t('header.myprofile') }}
|
||||||
|
</v-btn>
|
||||||
|
</template>
|
||||||
|
|
||||||
<!-- LANGUAGE -->
|
<!-- LANGUAGE -->
|
||||||
<v-btn
|
<v-btn
|
||||||
|
|||||||
Reference in New Issue
Block a user