From 7d2c5ed33929719f22491998fe990201dd7ac54b Mon Sep 17 00:00:00 2001 From: Timothy <32404189+MeisterRed@users.noreply.github.com> Date: Mon, 23 Dec 2019 11:48:55 -0500 Subject: [PATCH] Fixed disappearing email form bug by forcing a refresh after submission, Fixes #11565 (#11614) * Fixed disappearing form bug by forcing a refresh after submission * Added reloadPage() to the changeEmail submit button * Added indentation for the reloadPage() function * Adjusted changeUser() function (added reloadPage) Added reloadPage() function to the changeUser() function. This should allow the page to reload after the email is updated instead of before the function gets to finish updating the account's email * Adjusted changeUser() function Added window.location.reload() to the changeUser() function. This should allow the page to reload after the email is updated instead of before the function gets to finish updating the account's email * Adjusted changeUser function --- website/client/src/components/settings/site.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/client/src/components/settings/site.vue b/website/client/src/components/settings/site.vue index b63f964f31..ac3299c44c 100644 --- a/website/client/src/components/settings/site.vue +++ b/website/client/src/components/settings/site.vue @@ -812,7 +812,8 @@ export default { this.localAuth.username = this.user.auth.local.username; this.user.flags.verifiedUsername = true; } else if (attribute === 'email') { - this.user.auth.local.email = updates[attribute]; + this.user.auth.local.email = updates.newEmail; + window.alert(this.$t('emailSuccess')); } }, async changeDisplayName (newName) {