diff options
| author | Joe Carstairs <jcarstairs@scottlogic.com> | 2024-01-22 14:47:56 +0000 |
|---|---|---|
| committer | Joe Carstairs <jcarstairs@scottlogic.com> | 2024-01-29 10:51:49 +0000 |
| commit | edcb9577e28dc312f48d5ab3f5ecc8eeffd8db56 (patch) | |
| tree | 5b01e90a6adbd7b29ede487d320e3330fe2dec19 | |
| parent | 036a3eae0de7a9d087eaa73cd34c0fcceac6f272 (diff) | |
sign-up page updates status message every time button is pressed
| -rw-r--r-- | src/pages/[locale]/sign-up/index.astro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/[locale]/sign-up/index.astro b/src/pages/[locale]/sign-up/index.astro index b202440..75103aa 100644 --- a/src/pages/[locale]/sign-up/index.astro +++ b/src/pages/[locale]/sign-up/index.astro @@ -48,7 +48,6 @@ const t = translate(locale); const emailInput = document.getElementById('email') as HTMLInputElement; const submitButton = document.getElementsByTagName('button')[0] as HTMLButtonElement; const statusInfoMsg = document.createElement('p'); - statusInfoMsg.textContent = t(tPage, { key: 'status-working' }); const successPageUrl = `/${locale}/sign-up/success`; @@ -58,6 +57,7 @@ const t = translate(locale); // Disable the form and leave message to let the user know it’s been submitted setIsFormDisabled(true); + statusInfoMsg.textContent = t(tPage, { key: 'status-working' }); form.after(statusInfoMsg); let registrationOptions; |
