diff options
| author | Adam Soltys <[email protected]> | 2022-09-28 20:21:58 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-28 20:21:58 -0700 |
| commit | 9e07792fcdd0ba0b7c07a20fe83db54597388e26 (patch) | |
| tree | a79d54ea6b864abc1953a3aafcc3ff630c1b06e5 /src/components/RegisterOrLogin.svelte | |
| parent | 732f77dcabc45a3df578a1a03c457b9c94866619 (diff) | |
| download | coinos-ui-9e07792fcdd0ba0b7c07a20fe83db54597388e26.tar.gz coinos-ui-9e07792fcdd0ba0b7c07a20fe83db54597388e26.zip | |
withdraw page and other fixups
Diffstat (limited to 'src/components/RegisterOrLogin.svelte')
| -rw-r--r-- | src/components/RegisterOrLogin.svelte | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/components/RegisterOrLogin.svelte b/src/components/RegisterOrLogin.svelte index 88fe62e6..fa805a1d 100644 --- a/src/components/RegisterOrLogin.svelte +++ b/src/components/RegisterOrLogin.svelte @@ -1,5 +1,5 @@ <script> - import { browser } from "$app/environment"; + import { browser } from '$app/environment'; import { page } from '$app/stores'; import { tick } from 'svelte'; import { Icon } from '$comp'; @@ -23,12 +23,12 @@ signIn: '/login' }[pageID]; - // TODO: move to server side + // TODO: move to server side $: if (browser && $user) goto(`/${$user.username}/receive`); - let focus = (el) => setTimeout(() => el.focus()); + let focus = (el) => setTimeout(() => el.focus()); - console.log("REDIRECT STORE", $redirect) + console.log('REDIRECT STORE', $redirect); </script> <div class="pt-10"> @@ -56,13 +56,21 @@ class="bg-primary" bind:value={username} use:focus + autocapitalize="none" /> </div> <div class="relative"> <label for="password" class="block font-semibold">{$t('login.password')}</label> {#if revealPassword} - <input name="password" type="text" required class="bg-primary" bind:value={password} /> + <input + name="password" + type="text" + required + class="bg-primary" + bind:value={password} + autocapitalize="none" + /> {:else} <input name="password" @@ -70,6 +78,7 @@ required class="bg-primary" bind:value={password} + autocapitalize="none" /> {/if} <button |
