diff --git a/src/views/Profile/Dialogs/PageInformations/BannerPicker.vue b/src/views/Profile/Dialogs/PageInformations/BannerPicker.vue index 5cff0bb..90d5f4d 100644 --- a/src/views/Profile/Dialogs/PageInformations/BannerPicker.vue +++ b/src/views/Profile/Dialogs/PageInformations/BannerPicker.vue @@ -37,7 +37,7 @@ const props = defineProps({ const emits = defineEmits(['closeRequested']) const selectedFile = ref("") -const fileUrl = ref(props.creator.storedDataUrls.bannerPictureUrl) +const fileUrl = ref(props.creator.images.banner) const onFileSelected = () => { if (selectedFile.value) { @@ -61,7 +61,7 @@ const publish = async () => { `/api/creators/${props.creator.id}/banner`, formData) - props.creator.storedDataUrls.bannerPictureUrl = fileUrl + props.creator.images.banner = fileUrl emits('closeRequested') } catch (error) { console.error(error) diff --git a/src/views/Profile/Dialogs/PageInformations/LogoPicker.vue b/src/views/Profile/Dialogs/PageInformations/LogoPicker.vue index bc87bbd..3240138 100644 --- a/src/views/Profile/Dialogs/PageInformations/LogoPicker.vue +++ b/src/views/Profile/Dialogs/PageInformations/LogoPicker.vue @@ -37,7 +37,7 @@ const props = defineProps({ const emits = defineEmits(['closeRequested']) const selectedFile = ref("") -const fileUrl = ref(props.creator.storedDataUrls.profilePictureUrl) +const fileUrl = ref(props.creator.images.logo) const onFileSelected = () => { if (selectedFile.value) { @@ -61,7 +61,7 @@ const publish = async () => { `/api/creators/${props.creator.id}/logo`, formData) - props.creator.storedDataUrls.profilePictureUrl = fileUrl + props.creator.images.logoUrl = fileUrl emits('closeRequested') } catch (error) { console.error(error) diff --git a/src/views/Profile/PageInformations.vue b/src/views/Profile/PageInformations.vue index 673d9c3..c5e67f0 100644 --- a/src/views/Profile/PageInformations.vue +++ b/src/views/Profile/PageInformations.vue @@ -69,7 +69,7 @@ const closeDialog = () => { diff --git a/src/views/creators/CreatorBanner.vue b/src/views/creators/CreatorBanner.vue index 04cba43..f744ee9 100644 --- a/src/views/creators/CreatorBanner.vue +++ b/src/views/creators/CreatorBanner.vue @@ -26,7 +26,7 @@