Make OPD ABDM flow wait for first request

This commit is contained in:
DevSoftTech Server 2026-07-28 01:46:36 +05:30
parent 49969cb9be
commit 05d35f6021

View File

@ -758,13 +758,11 @@ $(function() {
if (resetRequestId) {
autoFlowRequestId = '';
stopAutoFlowLoop();
updateConsentBadge('FAILED', false);
$('#abdmStatusBox').removeClass('text-danger').addClass('text-muted').text('Previous consent request is stale/failed. HMS is starting a fresh request automatically.');
if (autoFlowAttempts < autoFlowMaxAttempts) {
autoFlowAttempts += 1;
autoFlowTimer = setTimeout(runAutoFlowStep, 1200);
return;
}
$('#btnAutoAbdmFlow').prop('disabled', false);
applyConsentButtonState();
$('#abdmStatusBox').removeClass('text-danger').addClass('text-muted').text('Previous request is still being processed. Please wait for the first request to finish before starting a new one.');
return;
}