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

@@ -59,13 +59,13 @@ initializeLocale();
</div>
<v-divider class="my-4" style="border-width: 1px; border-color: black;"></v-divider>
<!-- USER SECTION -->
<div class="px-4 mb-4">
<div class="flex items-center justify-start p-2 mb-4">
<img
:src="userProfileStore.portraitUrl"
alt="Profile Image"
referrerpolicy="no-referrer"
<!-- USER SECTION -->
<div class="px-4 mb-4">
<div class="flex items-center justify-start p-2 mb-4">
<img
:src="userProfileStore.portraitUrl"
alt="Profile Image"
referrerpolicy="no-referrer"
class="rounded-full"
width="42"
height="42"
@@ -96,12 +96,14 @@ initializeLocale();
<!-- CREATE CONTENT -->
<!-- PROFILE -->
<v-btn to="/profile"
class="w-full justify-start"
prepend-icon="mdi-account"
variant="flat">
{{ $t('header.myprofile') }}
</v-btn>
<template v-if="authStore.isAuthenticated">
<v-btn to="/profile"
class="w-full justify-start"
prepend-icon="mdi-account"
variant="flat">
{{ $t('header.myprofile') }}
</v-btn>
</template>
<!-- LANGUAGE -->
<v-btn