Added strict registration

This commit is contained in:
Patrick Alvin Alcala 2025-09-26 17:44:05 +08:00
parent 52ebeebe4d
commit 510cff943b

View file

@ -172,9 +172,29 @@ export default () => {
</FileField>
<Padding top={2} bottom={0} left={0} right={0}>
<Show when={file() && password()}>
<Row>
<Button edges="curved" design="bo-primary" label="Register" onClick={generateSignature} wide />
</Row>
</Show>
<Show when={!file() && !password()}>
<Row>
<span class="already-registered">Need password and signature</span>
</Row>
</Show>
<Show when={file() && !password()}>
<Row>
<span class="already-registered">Need password</span>
</Row>
</Show>
<Show when={!file() && password()}>
<Row>
<span class="already-registered">Need signature</span>
</Row>
</Show>
</Padding>
</Show>
@ -211,9 +231,17 @@ export default () => {
</FileField>
<Padding top={2} bottom={0} left={0} right={0}>
<Show when={file()}>
<Row>
<Button edges="curved" design="bo-primary" label="Register" onClick={generateSignature} wide />
</Row>
</Show>
<Show when={!file()}>
<Row>
<span class="already-registered">Need signature</span>
</Row>
</Show>
</Padding>
</Show>