From abbe42ac44130c9edd65728ff4e3fae3c323b5a1 Mon Sep 17 00:00:00 2001 From: ShanYi-Hui Date: Sat, 3 Oct 2026 17:09:38 +0800 Subject: [PATCH] fix(profile): preserve email binding draft during user refresh --- Makefile | 1 + .../ProfileIdentityBindingsSection.vue | 27 ++- .../ProfileIdentityBindingsSection.spec.ts | 162 +++++++++++++++++- 3 files changed, 181 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index e205902e2f..9959342a0a 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ FRONTEND_CRITICAL_VITEST := \ src/views/user/__tests__/PaymentResultView.spec.ts \ src/views/user/__tests__/ChannelStatusView.mode.spec.ts \ src/components/user/profile/__tests__/ProfileInfoCard.spec.ts \ + src/components/user/profile/__tests__/ProfileIdentityBindingsSection.spec.ts \ src/views/admin/__tests__/SettingsView.spec.ts \ src/features/channel-monitor-v2/__tests__/designSystem.structure.spec.ts \ src/features/channel-monitor-v2/__tests__/monitorFormat.spec.ts \ diff --git a/frontend/src/components/user/profile/ProfileIdentityBindingsSection.vue b/frontend/src/components/user/profile/ProfileIdentityBindingsSection.vue index 8764c07e3a..e15b112873 100644 --- a/frontend/src/components/user/profile/ProfileIdentityBindingsSection.vue +++ b/frontend/src/components/user/profile/ProfileIdentityBindingsSection.vue @@ -99,6 +99,7 @@ class="input" :placeholder="t('profile.authBindings.emailPlaceholder')" :disabled="isSendingEmailCode || isBindingEmail" + @input="isEmailBindingFormDirty = true" />