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
This commit is contained in:
Timothy 2019-12-23 11:48:55 -05:00 committed by Matteo Pagliazzi
parent b9af3fb40e
commit 7d2c5ed339

View file

@ -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) {