diff --git a/src/views/Profile/Dialogs/PageInformations/SocialNetworks.vue b/src/views/Profile/Dialogs/PageInformations/Socials.vue similarity index 69% rename from src/views/Profile/Dialogs/PageInformations/SocialNetworks.vue rename to src/views/Profile/Dialogs/PageInformations/Socials.vue index 1a466b9..37cc76d 100644 --- a/src/views/Profile/Dialogs/PageInformations/SocialNetworks.vue +++ b/src/views/Profile/Dialogs/PageInformations/Socials.vue @@ -10,14 +10,14 @@ const props = defineProps({ const emits = defineEmits(['closeRequested']) -const facebookUrl = ref(props.creator.socialNetworks.facebookUrl) -const instagramUrl = ref(props.creator.socialNetworks.instagramUrl) -const linkedInUrl = ref(props.creator.socialNetworks.linkedInUrl) -const redditUrl = ref(props.creator.socialNetworks.redditUrl) -const tikTokUrl = ref(props.creator.socialNetworks.tikTokUrl) -const websiteUrl = ref(props.creator.socialNetworks.websiteUrl) -const xUrl = ref(props.creator.socialNetworks.xUrl) -const youtubeUrl = ref(props.creator.socialNetworks.youtubeUrl) +const facebookUrl = ref(props.creator.socials.facebookUrl) +const instagramUrl = ref(props.creator.socials.instagramUrl) +const linkedInUrl = ref(props.creator.socials.linkedInUrl) +const redditUrl = ref(props.creator.socials.redditUrl) +const tikTokUrl = ref(props.creator.socials.tikTokUrl) +const websiteUrl = ref(props.creator.socials.websiteUrl) +const xUrl = ref(props.creator.socials.xUrl) +const youtubeUrl = ref(props.creator.socials.youtubeUrl) const client = useClient() const save = async () => { @@ -35,14 +35,14 @@ const save = async () => { "youtubeUrl": youtubeUrl.value || null, }) - props.creator.socialNetworks.facebookUrl = facebookUrl - props.creator.socialNetworks.instagramUrl = instagramUrl - props.creator.socialNetworks.linkedInUrl = linkedInUrl - props.creator.socialNetworks.redditUrl = redditUrl - props.creator.socialNetworks.tikTokUrl = tikTokUrl - props.creator.socialNetworks.websiteUrl = websiteUrl - props.creator.socialNetworks.xUrl = xUrl - props.creator.socialNetworks.youtubeUrl = youtubeUrl + props.creator.socials.facebookUrl = facebookUrl + props.creator.socials.instagramUrl = instagramUrl + props.creator.socials.linkedInUrl = linkedInUrl + props.creator.socials.redditUrl = redditUrl + props.creator.socials.tikTokUrl = tikTokUrl + props.creator.socials.websiteUrl = websiteUrl + props.creator.socials.xUrl = xUrl + props.creator.socials.youtubeUrl = youtubeUrl emits('closeRequested') } catch (error) { diff --git a/src/views/Profile/PageInformations.vue b/src/views/Profile/PageInformations.vue index cd93a8c..a66364a 100644 --- a/src/views/Profile/PageInformations.vue +++ b/src/views/Profile/PageInformations.vue @@ -1,6 +1,6 @@  \ No newline at end of file