Fix issue when accessing profile without a creator associated
This commit is contained in:
@@ -75,98 +75,94 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Lorsque l'utilisateur n'a pas de creator name-->
|
<template v-if="creatorProfileStore.creator !== undefined">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
|
<div class="title">
|
||||||
|
{{ $t('creatorinfopage.informations') }}
|
||||||
|
</div>
|
||||||
|
<div class="content">
|
||||||
|
|
||||||
<div class="title">
|
<!-- NAME -->
|
||||||
{{ $t('creatorinfopage.informations') }}
|
<button class="action">
|
||||||
|
<span class="label">{{ $t('creatorinfopage.name') }}</span>
|
||||||
|
<span class="value">{{ creatorProfileStore.creator.name }}</span>
|
||||||
|
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<!-- TITLE -->
|
||||||
|
<button class="action" @click="openDialog('ChangeTitleDialog')">
|
||||||
|
<span class="label">{{ $t('creatorinfopage.title') }}</span>
|
||||||
|
<span class="value">{{ creatorProfileStore.creator.title }}</span>
|
||||||
|
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<!-- STRIPE -->
|
||||||
|
<button class="action" @click="openDialog('ChangeStripeIdDialog')">
|
||||||
|
<span class="label">Stripe Account ID</span>
|
||||||
|
<span class="value">{{ creatorProfileStore.creator.stripeId }}</span>
|
||||||
|
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="card">
|
||||||
|
<div class="title">
|
||||||
|
{{ $t('creatorinfopage.socialnetwork') }}
|
||||||
|
</div>
|
||||||
|
<div class="content">
|
||||||
|
|
||||||
<!-- NAME -->
|
<button class="action" @click="openDialog('SocialsDialog')">
|
||||||
<button class="action">
|
<span class="label"><v-icon>mdi-facebook</v-icon></span>
|
||||||
<span class="label">{{ $t('creatorinfopage.name') }}</span>
|
<span class="value">{{ creatorProfileStore.creator.socials?.facebookUrl }}</span>
|
||||||
<span class="value">{{ creatorProfileStore.creator.name }}</span>
|
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
||||||
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
</button>
|
||||||
</button>
|
|
||||||
|
|
||||||
<!-- TITLE -->
|
<button class="action" @click="openDialog('SocialsDialog')">
|
||||||
<button class="action" @click="openDialog('ChangeTitleDialog')">
|
<span class="label"><v-icon>mdi-instagram</v-icon></span>
|
||||||
<span class="label">{{ $t('creatorinfopage.title') }}</span>
|
<span class="value">{{ creatorProfileStore.creator.socials?.instagramUrl }}</span>
|
||||||
<span class="value">{{ creatorProfileStore.creator.title }}</span>
|
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
||||||
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
</button>
|
||||||
</button>
|
|
||||||
|
|
||||||
<!-- STRIPE -->
|
<button class="action" @click="openDialog('SocialsDialog')">
|
||||||
<button class="action" @click="openDialog('ChangeStripeIdDialog')">
|
<span class="label"><x-icon class="w-6 h-6"></x-icon></span>
|
||||||
<span class="label">Stripe Account ID</span>
|
<span class="value">{{ creatorProfileStore.creator.socials?.xUrl }}</span>
|
||||||
<span class="value">{{ creatorProfileStore.creator.stripeId }}</span>
|
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
||||||
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
</button>
|
||||||
</button>
|
|
||||||
|
|
||||||
|
<button class="action" @click="openDialog('SocialsDialog')">
|
||||||
|
<span class="label"><v-icon>mdi-linkedin</v-icon></span>
|
||||||
|
<span class="value">{{ creatorProfileStore.creator.socials?.linkedInUrl }}</span>
|
||||||
|
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button class="action" @click="openDialog('SocialsDialog')">
|
||||||
|
<span class="label"><x-icon class="w-6 h-6"></x-icon></span>
|
||||||
|
<span class="value">{{ creatorProfileStore.creator.socials?.tikTokUrl }}</span>
|
||||||
|
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button class="action" @click="openDialog('SocialsDialog')">
|
||||||
|
<span class="label"><v-icon>mdi-youtube</v-icon></span>
|
||||||
|
<span class="value">{{ creatorProfileStore.creator.socials?.youtubeUrl }}</span>
|
||||||
|
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button class="action" @click="openDialog('SocialsDialog')">
|
||||||
|
<span class="label"><v-icon>mdi-reddit</v-icon></span>
|
||||||
|
<span class="value">{{ creatorProfileStore.creator.socials?.redditUrl }}</span>
|
||||||
|
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button class="action" @click="openDialog('SocialsDialog')">
|
||||||
|
<span class="label"><v-icon>mdi-web</v-icon></span>
|
||||||
|
<span class="value">{{ creatorProfileStore.creator.socials?.websiteUrl }}</span>
|
||||||
|
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</template>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="card">
|
|
||||||
|
|
||||||
<div class="title">
|
|
||||||
{{ $t('creatorinfopage.socialnetwork') }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="content">
|
|
||||||
|
|
||||||
<button class="action" @click="openDialog('SocialsDialog')">
|
|
||||||
<span class="label"><v-icon>mdi-facebook</v-icon></span>
|
|
||||||
<span class="value">{{ creatorProfileStore.creator.socials?.facebookUrl }}</span>
|
|
||||||
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button class="action" @click="openDialog('SocialsDialog')">
|
|
||||||
<span class="label"><v-icon>mdi-instagram</v-icon></span>
|
|
||||||
<span class="value">{{ creatorProfileStore.creator.socials?.instagramUrl }}</span>
|
|
||||||
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button class="action" @click="openDialog('SocialsDialog')">
|
|
||||||
<span class="label"><x-icon class="w-6 h-6"></x-icon></span>
|
|
||||||
<span class="value">{{ creatorProfileStore.creator.socials?.xUrl }}</span>
|
|
||||||
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button class="action" @click="openDialog('SocialsDialog')">
|
|
||||||
<span class="label"><v-icon>mdi-linkedin</v-icon></span>
|
|
||||||
<span class="value">{{ creatorProfileStore.creator.socials?.linkedInUrl }}</span>
|
|
||||||
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button class="action" @click="openDialog('SocialsDialog')">
|
|
||||||
<span class="label"><x-icon class="w-6 h-6"></x-icon></span>
|
|
||||||
<span class="value">{{ creatorProfileStore.creator.socials?.tikTokUrl }}</span>
|
|
||||||
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button class="action" @click="openDialog('SocialsDialog')">
|
|
||||||
<span class="label"><v-icon>mdi-youtube</v-icon></span>
|
|
||||||
<span class="value">{{ creatorProfileStore.creator.socials?.youtubeUrl }}</span>
|
|
||||||
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button class="action" @click="openDialog('SocialsDialog')">
|
|
||||||
<span class="label"><v-icon>mdi-reddit</v-icon></span>
|
|
||||||
<span class="value">{{ creatorProfileStore.creator.socials?.redditUrl }}</span>
|
|
||||||
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button class="action" @click="openDialog('SocialsDialog')">
|
|
||||||
<span class="label"><v-icon>mdi-web</v-icon></span>
|
|
||||||
<span class="value">{{ creatorProfileStore.creator.socials?.websiteUrl }}</span>
|
|
||||||
<span class="chevron"><v-icon>mdi-chevron-right</v-icon></span>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user