aboutsummaryrefslogtreecommitdiffstats
path: root/apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-09-29 12:08:43 +0200
committerivarlovlie <git@ivarlovlie.no>2022-09-29 12:08:43 +0200
commit4d6a7e8ba4660f8861de8c8b0f1b45a205b5c738 (patch)
tree4fe4b11a51f18b0fd8a509dc95c224da930915f5 /apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte
parenta893be89c5e2863ae44af3fa2c2639604ced1278 (diff)
downloadgreatoffice-4d6a7e8ba4660f8861de8c8b0f1b45a205b5c738.tar.xz
greatoffice-4d6a7e8ba4660f8861de8c8b0f1b45a205b5c738.zip
refactor: Transition back to non-namespaced i18n
Diffstat (limited to 'apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte')
-rw-r--r--apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte11
1 files changed, 7 insertions, 4 deletions
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 @@
<h2
class="mt-6 text-center text-3xl tracking-tight font-bold text-gray-900"
>
- {$LL["reset-password"].requestAPasswordReset()}
+ {$LL.requestAPasswordReset()}
</h2>
<p class="mt-2 text-center text-sm text-gray-600">
- {$LL.or()}
+ {$LL.or().toLowerCase()}
<a href="/sign-in" class="link">
- {$LL["reset-password"].signIntoYourAccount()}
+ {$LL.signIntoYourAccount()}
</a>
</p>
</div>
@@ -61,7 +64,7 @@
<Alert
type="success"
title={$LL.success()}
- message={$LL["reset-password"].requestSentMessage()}
+ message={$LL.requestSentMessage()}
visible={showSuccessAlert}
/>