From 659443316c0ac00cfb235954775b902732c3ac5b Mon Sep 17 00:00:00 2001 From: Jonathan Bourdon Date: Fri, 18 Apr 2025 04:58:18 -0400 Subject: [PATCH] Refactor dialog components in ProfilePage to use markRaw for improved performance. Update EmailDialog to correctly handle email state and emit close events. ChangeSlugDialog now initializes newSlug with the creator's slug. --- frontend/src/views/profile/ProfilePage.vue | 14 +++++----- .../src/views/profile/account/EmailDialog.vue | 26 +++++++++---------- .../profile/creators/ChangeSlugDialog.vue | 2 +- 3 files changed, 20 insertions(+), 22 deletions(-) diff --git a/frontend/src/views/profile/ProfilePage.vue b/frontend/src/views/profile/ProfilePage.vue index e9fba3c..fddae1a 100644 --- a/frontend/src/views/profile/ProfilePage.vue +++ b/frontend/src/views/profile/ProfilePage.vue @@ -1,5 +1,5 @@  diff --git a/frontend/src/views/profile/creators/ChangeSlugDialog.vue b/frontend/src/views/profile/creators/ChangeSlugDialog.vue index 32fd293..f9a1093 100644 --- a/frontend/src/views/profile/creators/ChangeSlugDialog.vue +++ b/frontend/src/views/profile/creators/ChangeSlugDialog.vue @@ -17,7 +17,7 @@ const creatorProfileStore = useCreatorProfileStore(); const client = useClient(); const t = useTranslations(); -const newSlug = ref(''); +const newSlug = ref(props.creator.slug); const slugReservationId = ref(undefined); const isOperationPending = ref(false); const errorMessage = ref('');