forked from Ivasoft/geovisio-website
add composable and config url user
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user