Remove ABHA card download from mobile OTP modal

This commit is contained in:
DevSoftTech Server 2026-08-14 02:14:33 +05:30
parent 52dc9fb5fd
commit d4d0e9cd82

View File

@ -98,7 +98,6 @@
</div>
<div class="col-lg-6">
<div class="abha-card-preview" id="abhaMobileCardWrap"><div class="text-center text-muted"><i class="bi bi-card-image fs-1 d-block mb-2"></i><span>Official ABHA card was not returned by the Bridge.</span></div></div>
<a class="btn btn-outline-primary w-100 mt-2 d-none" id="abhaMobileDownloadCard" download="ABHA-card"><i class="bi bi-download me-1"></i>Download ABHA Card</a>
</div>
</div>
<div class="d-flex justify-content-end mt-4">
@ -234,10 +233,8 @@ window.AbhaMobileModal = (function () {
? ''
: '<div class="small text-warning mt-1"><i class="bi bi-exclamation-triangle me-1"></i>Provisional card generated by the Bridge, not the official ABDM card.</div>';
$('#abhaMobileCardWrap').html('<img src="' + cardSrc + '" alt="ABHA card">' + note);
$('#abhaMobileDownloadCard').attr('href', cardSrc).removeClass('d-none');
} else {
$('#abhaMobileCardWrap').html('<div class="text-center text-muted"><i class="bi bi-card-image fs-1 d-block mb-2"></i>Official ABHA card was not returned by the Bridge.</div>');
$('#abhaMobileDownloadCard').addClass('d-none');
}
showStep(3);
}
@ -279,7 +276,7 @@ window.AbhaMobileModal = (function () {
stopTimer();
$('#abhaMobileNumber').val(typeof prefillMobile === 'string' ? prefillMobile : '');
$('#abhaMobileOtp').val('');
$('#abhaMobilePhoto,#abhaMobileDownloadCard').addClass('d-none');
$('#abhaMobilePhoto').addClass('d-none');
showStep(1);
modal.show();
window.setTimeout(function () { $('#abhaMobileNumber').trigger('focus'); }, 300);