Merge pull request #532 from appwrite/fix-wizard-disable-after-submission

fix: disable last step button wizard after submission
This commit is contained in:
Torsten Dittmann authored and GitHub committed 2023-09-06 18:59:38 +02:00
commit aa8d9f67e9
1 file changed
+5
+5
View File
@@ -74,8 +74,13 @@
wizard.setInterceptor(null);
if (isLastStep) {
$wizard.nextDisabled = true;
trackEvent('wizard_finish');
dispatch('finish');
//Reactivate button in case there are errors
setTimeout(() => {
$wizard.nextDisabled = false;
}, 2000);
} else {
trackEvent('wizard_next');
$wizard.step++;