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
2023-09-06 18:59:38 +02:00
committed by GitHub
+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++;