Fixed missing password on Approver registration
This commit is contained in:
parent
67512d8510
commit
feeda84f4c
1 changed files with 17 additions and 2 deletions
|
|
@ -233,6 +233,9 @@ export default () => {
|
|||
<h4>Name of Approver</h4>
|
||||
<span class="approver-name">{APPROVERNAME}</span>
|
||||
|
||||
<h4>Password</h4>
|
||||
<Input value={password()} onChange={setPassword}></Input>
|
||||
|
||||
<Show when={allow() === 2}>
|
||||
<h4>Upload Signature</h4>
|
||||
<FileField class="filefield" maxFiles={1} onFileAccept={(data) => setFile(data)} accept=".png">
|
||||
|
|
@ -253,17 +256,29 @@ export default () => {
|
|||
</FileField>
|
||||
|
||||
<Padding top={2} bottom={0} left={0} right={0}>
|
||||
<Show when={file()}>
|
||||
<Show when={file() && password()}>
|
||||
<Row>
|
||||
<Button edges="curved" design="bo-primary" label="Register" onClick={generateSignature} wide />
|
||||
</Row>
|
||||
</Show>
|
||||
|
||||
<Show when={!file()}>
|
||||
<Show when={file() && !password()}>
|
||||
<Row>
|
||||
<span class="already-registered">Required password</span>
|
||||
</Row>
|
||||
</Show>
|
||||
|
||||
<Show when={!file() && password()}>
|
||||
<Row>
|
||||
<span class="already-registered">Required signature</span>
|
||||
</Row>
|
||||
</Show>
|
||||
|
||||
<Show when={!file() && !password()}>
|
||||
<Row>
|
||||
<span class="already-registered">Required password and signature</span>
|
||||
</Row>
|
||||
</Show>
|
||||
</Padding>
|
||||
</Show>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue