Skip to content

Commit 1c71b58

Browse files
authored
Merge pull request #2004 from appwrite/fix-signup-terms
Fix: disable until accepted
2 parents a7b83c6 + 4829547 commit 1c71b58

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/routes/(public)/(guest)/register/+page.svelte

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
helper="Password must be at least 8 characters long"
108108
required
109109
bind:value={pass} />
110-
<InputChoice required value={terms} id="terms" label="terms" showLabel={false}>
110+
<InputChoice required bind:value={terms} id="terms" label="terms" showLabel={false}>
111111
By registering, you agree that you have read, understand, and acknowledge our <Link.Anchor
112112
href="https://appwrite.io/privacy"
113113
target="_blank"
@@ -119,10 +119,16 @@
119119
target="_blank"
120120
rel="noopener noreferrer">General Terms of Use</Link.Anchor
121121
>.</InputChoice>
122-
<Button fullWidth submit {disabled}>Sign up</Button>
122+
123+
<Button fullWidth submit disabled={disabled || !terms}>Sign up</Button>
124+
123125
{#if isCloud}
124126
<span class="with-separators eyebrow-heading-3">or</span>
125-
<Button secondary fullWidth on:click={onGithubLogin} {disabled}>
127+
<Button
128+
secondary
129+
fullWidth
130+
on:click={onGithubLogin}
131+
disabled={disabled || !terms}>
126132
<span class="icon-github" aria-hidden="true"></span>
127133
<span class="text">Sign up with GitHub</span>
128134
</Button>

0 commit comments

Comments
 (0)