updates AddUserModal to use new validator
This commit is contained in:
parent
46cbba1cc0
commit
2b3c4ee2bc
|
@ -1,11 +1,13 @@
|
|||
<script>
|
||||
import { Body, Input, Select, ModalContent } from "@budibase/bbui"
|
||||
import { createValidationStore, emailValidator } from "helpers/validation"
|
||||
|
||||
export let options
|
||||
export let selected
|
||||
export let email = ""
|
||||
export let onConfirm
|
||||
export let disabled
|
||||
|
||||
const [email, emailError] = createValidationStore("", emailValidator)
|
||||
</script>
|
||||
|
||||
<ModalContent
|
||||
|
@ -30,7 +32,8 @@
|
|||
/>
|
||||
<Input
|
||||
type="email"
|
||||
bind:value={email}
|
||||
bind:value={$email}
|
||||
error={$emailError}
|
||||
placeholder="john@doe.com"
|
||||
label="Email"
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue