From 7172090855ea5240bc4c8ac61bf4f766821f0591 Mon Sep 17 00:00:00 2001 From: Jonathan Bourdon Date: Tue, 6 Aug 2024 02:55:31 -0400 Subject: [PATCH] Renames ProfileColors to Colors --- .../Dialogs/PageInformations/ColorsPicker.vue | 16 ++++++------- src/views/Profile/PageInformations.vue | 6 ++--- src/views/contents/PublishContentButton.vue | 2 +- src/views/creators/CreatorBanner.vue | 6 ++--- src/views/creators/CreatorDescriptionBtn.vue | 4 ++-- src/views/main/ProfileBanner.vue | 24 +++++++++---------- 6 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/views/Profile/Dialogs/PageInformations/ColorsPicker.vue b/src/views/Profile/Dialogs/PageInformations/ColorsPicker.vue index c2f6937..90ad2de 100644 --- a/src/views/Profile/Dialogs/PageInformations/ColorsPicker.vue +++ b/src/views/Profile/Dialogs/PageInformations/ColorsPicker.vue @@ -14,10 +14,10 @@ const props = defineProps({ const emits = defineEmits(['closeRequested']); -const bannerTopColor = ref(props.creator.profileColors.bannerTop); -const bannerBottomColor = ref(props.creator.profileColors.bannerBottom); -const accentColor = ref(props.creator.profileColors.accent); -const menuColor = ref(props.creator.profileColors.menu); +const bannerTopColor = ref(props.creator.colors.bannerTop); +const bannerBottomColor = ref(props.creator.colors.bannerBottom); +const accentColor = ref(props.creator.colors.accent); +const menuColor = ref(props.creator.colors.menu); const selectedColorName = ref(props.colorName); const selectedColor = computed({ @@ -69,10 +69,10 @@ const save = async () => { "menu": menuColor.value || null }); - props.creator.profileColors.bannerTop = bannerTopColor.value; - props.creator.profileColors.bannerBottom = bannerBottomColor.value; - props.creator.profileColors.accent = accentColor.value; - props.creator.profileColors.menu = menuColor.value; + props.creator.colors.bannerTop = bannerTopColor.value; + props.creator.colors.bannerBottom = bannerBottomColor.value; + props.creator.colors.accent = accentColor.value; + props.creator.colors.menu = menuColor.value; emits('closeRequested'); } catch (error) { diff --git a/src/views/Profile/PageInformations.vue b/src/views/Profile/PageInformations.vue index 9607fae..3b209bc 100644 --- a/src/views/Profile/PageInformations.vue +++ b/src/views/Profile/PageInformations.vue @@ -59,7 +59,7 @@ const closeDialog = () => { @@ -76,7 +76,7 @@ const closeDialog = () => { @@ -85,7 +85,7 @@ const closeDialog = () => { Profile Image diff --git a/src/views/contents/PublishContentButton.vue b/src/views/contents/PublishContentButton.vue index 5d718c8..7eacd4b 100644 --- a/src/views/contents/PublishContentButton.vue +++ b/src/views/contents/PublishContentButton.vue @@ -74,7 +74,7 @@ const closeDialog = () => { + :style="{backgroundColor: creator.colors.menu || '#A30E79'}"> Quicky diff --git a/src/views/creators/CreatorBanner.vue b/src/views/creators/CreatorBanner.vue index 7ca98e2..82a8891 100644 --- a/src/views/creators/CreatorBanner.vue +++ b/src/views/creators/CreatorBanner.vue @@ -5,7 +5,7 @@