From 4d6a7e8ba4660f8861de8c8b0f1b45a205b5c738 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Thu, 29 Sep 2022 18:08:43 +0800 Subject: refactor: Transition back to non-namespaced i18n --- .../src/routes/(main)/(public)/reset-password/+page.svelte | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'apps/kit/src/routes/(main)/(public)/reset-password') diff --git a/apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte b/apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte index 865be10..9ee4a83 100644 --- a/apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte +++ b/apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte @@ -17,13 +17,16 @@ title: "", } as ErrorResult; + let loading = false; let showSuccessAlert = false; async function submitFormAsync() { errorData.text = ""; errorData.title = ""; showSuccessAlert = false; + loading = true; const request = await create_forgot_password_request(formData.email); + loading = false; if (!request.ok) { errorData.text = request.data.text ?? $LL.tryAgainSoon(); errorData.title = request.data.title ?? $LL.unexpectedError(); @@ -38,12 +41,12 @@

- {$LL["reset-password"].requestAPasswordReset()} + {$LL.requestAPasswordReset()}

- {$LL.or()} + {$LL.or().toLowerCase()} - {$LL["reset-password"].signIntoYourAccount()} + {$LL.signIntoYourAccount()}

@@ -61,7 +64,7 @@ -- cgit v1.3