From 54944822f17eefa57e6767f7b254fa338ca6c7b9 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Sat, 14 Aug 2021 00:35:17 +0000 Subject: [PATCH] Minor refactor Signed-off-by: Christopher Ng --- .../DisplayNameSection/DisplayName.vue | 64 ++++++++-------- .../DisplayNameSection/DisplayNameSection.vue | 1 + .../PersonalInfo/EmailSection/Email.vue | 74 ++++++++++--------- .../EmailSection/EmailSection.vue | 1 + .../PersonalInfo/shared/AddButton.vue | 8 +- .../PersonalInfo/shared/HeaderBar.vue | 4 +- 6 files changed, 77 insertions(+), 75 deletions(-) diff --git a/apps/settings/src/components/PersonalInfo/DisplayNameSection/DisplayName.vue b/apps/settings/src/components/PersonalInfo/DisplayNameSection/DisplayName.vue index 1ff7014ed73..e831740fc5c 100644 --- a/apps/settings/src/components/PersonalInfo/DisplayNameSection/DisplayName.vue +++ b/apps/settings/src/components/PersonalInfo/DisplayNameSection/DisplayName.vue @@ -31,7 +31,7 @@ autocapitalize="none" autocomplete="on" autocorrect="off" - required="true" + required @input="onDisplayNameChange">
@@ -104,7 +104,7 @@ export default { handleResponse({ displayName, status, errorMessage, error }) { if (status === 'ok') { - // Ensure that local initialDiplayName state reflects server state + // Ensure that local state reflects server state this.initialDisplayName = displayName this.showCheckmarkIcon = true setTimeout(() => { this.showCheckmarkIcon = false }, 2000) @@ -124,9 +124,9 @@ export default { diff --git a/apps/settings/src/components/PersonalInfo/DisplayNameSection/DisplayNameSection.vue b/apps/settings/src/components/PersonalInfo/DisplayNameSection/DisplayNameSection.vue index 05b4836b615..f15e02fe1c9 100644 --- a/apps/settings/src/components/PersonalInfo/DisplayNameSection/DisplayNameSection.vue +++ b/apps/settings/src/components/PersonalInfo/DisplayNameSection/DisplayNameSection.vue @@ -87,4 +87,5 @@ export default { cursor: default; } } +} diff --git a/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue b/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue index 036c35425a2..d6328a8da33 100644 --- a/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue +++ b/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue @@ -23,6 +23,7 @@