Closed adarshjp closed 2 years ago
FE changes implemented. Verify the updatation.
Pls add FE for level downgrade
Degrade Option is added. Check and merge with main.
What happens when we try to upgrade the level after 3? Is Mongoose validation working?
The button is disabled.
The doctor cannot upgrade or degrade.
if(patient[0].level==1){ document.getElementById('downgrade-but').setAttribute('disabled','') } if(patient[0].level==3){ document.getElementById('upgrade-but').setAttribute('disabled','') }
The button is disabled. The doctor cannot upgrade or degrade.
if(patient[0].level==1){ document.getElementById('downgrade-but').setAttribute('disabled','') } if(patient[0].level==3){ document.getElementById('upgrade-but').setAttribute('disabled','') }
Understood But without this piece of code, what happens? I'm asking about validations
No, it is not validating. Level get incremented beyond 3.
Pls find out the reason for it
Added level update and discharge BE