feat(registration): disabled done button for 7.5s
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
cbfbd92d0e
commit
5f5b03a8a0
|
@ -6,6 +6,7 @@
|
|||
|
||||
$: firstname = '';
|
||||
$: lastname = '';
|
||||
$: doneButtonEnabled = false;
|
||||
$: showResult = false;
|
||||
$: showError = false;
|
||||
|
||||
|
@ -38,7 +39,12 @@
|
|||
})) as ResponseRunner;
|
||||
showError = false;
|
||||
showResult = true;
|
||||
focusDoneButton();
|
||||
setTimeout(() => {
|
||||
doneButtonEnabled = true;
|
||||
setTimeout(() => {
|
||||
focusDoneButton();
|
||||
}, 25);
|
||||
}, 7500);
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
showError = true;
|
||||
|
@ -201,8 +207,11 @@
|
|||
|
||||
<div class="mx-auto text-center items-center">
|
||||
<button
|
||||
class:opacity-50={!doneButtonEnabled}
|
||||
disabled={!doneButtonEnabled}
|
||||
id="done"
|
||||
on:click={() => {
|
||||
doneButtonEnabled = false;
|
||||
showResult = false;
|
||||
focusFirstName();
|
||||
}}
|
||||
|
|
Loading…
Reference in New Issue