Revert login on enter
This commit is contained in:
parent
d4518073c6
commit
9f99058452
|
@ -38,12 +38,6 @@
|
||||||
notifications.error("Invalid credentials")
|
notifications.error("Invalid credentials")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const submitOnEnter = e => {
|
|
||||||
if (e.key === "Enter") {
|
|
||||||
login()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="login">
|
<div class="login">
|
||||||
|
@ -57,13 +51,12 @@
|
||||||
<Divider noGrid />
|
<Divider noGrid />
|
||||||
<Layout gap="XS" noPadding>
|
<Layout gap="XS" noPadding>
|
||||||
<Body size="S" textAlign="center">Sign in with email</Body>
|
<Body size="S" textAlign="center">Sign in with email</Body>
|
||||||
<Input label="Email" bind:value={username} on:keyup={submitOnEnter} />
|
<Input label="Email" bind:value={username} />
|
||||||
<Input
|
<Input
|
||||||
label="Password"
|
label="Password"
|
||||||
type="password"
|
type="password"
|
||||||
on:change
|
on:change
|
||||||
bind:value={password}
|
bind:value={password}
|
||||||
on:keyup={submitOnEnter}
|
|
||||||
/>
|
/>
|
||||||
</Layout>
|
</Layout>
|
||||||
<Layout gap="XS" noPadding>
|
<Layout gap="XS" noPadding>
|
||||||
|
|
Loading…
Reference in New Issue