add composable and config url user

This commit is contained in:
Andreani Jean
2023-05-10 18:27:55 +02:00
parent ff8d5685e9
commit 53c536361c
5 changed files with 33 additions and 5 deletions

View File

@@ -39,7 +39,7 @@
path="/partager-des-photos"
/>
</div>
<div class="item-with-sub">
<div v-if="authEnabled" class="item-with-sub">
<Link
type="external"
icon="bi bi-person-circle"
@@ -49,7 +49,7 @@
/>
<i v-if="isLogged" class="chevron bi bi-chevron-up"></i>
<div v-if="isLogged" class="sub-nav-block">
<div class="logged-link">
<div v-if="userProfileUrl" class="logged-link">
<Link
path="mon-compte"
:text="$t('general.header.account_text')"
@@ -85,6 +85,11 @@ import BetaText from '@/components/BetaText.vue'
const { cookies } = useCookies()
const { t } = useI18n()
const route = useRoute()
defineProps({
authEnabled: { type: Boolean, default: true },
userProfileUrl: { type: String, default: null }
})
let menuIsClosed = ref<boolean>(true)
function toggleMenu(): void {