adarshjp / Semantic-Cueing

Semantic Cueing is a system which helps to provide a speech therapy to patients with cognitive disabilities.
http://semantic-cueing.herokuapp.com/
1 stars 1 forks source link

addded level update and discharge BE #136

Closed adarshjp closed 2 years ago

adarshjp commented 2 years ago

Added level update and discharge BE

ajay-acer commented 2 years ago

FE changes implemented. Verify the updatation.

adarshjp commented 2 years ago

Pls add FE for level downgrade

ajay-acer commented 2 years ago

Degrade Option is added. Check and merge with main.

adarshjp commented 2 years ago

What happens when we try to upgrade the level after 3? Is Mongoose validation working?

ajay-acer commented 2 years ago

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','') }

adarshjp commented 2 years ago

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

ajay-acer commented 2 years ago

No, it is not validating. Level get incremented beyond 3.

adarshjp commented 2 years ago

Pls find out the reason for it