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