permafrost06 / DiagMan

Patient/disease case management software
2 stars 1 forks source link

refactor checkbox functionality #35

Closed permafrost06 closed 1 year ago

permafrost06 commented 1 year ago

The previous code seemed quite confusing to me. It felt like it was not harnessing the powers of reactive properties; instead treating them like regular variables - resulting in messy code. This newer code uses reactivity and computed properties, retains all previous functionality, and looks cleaner as a bonus.

The naming was also not the best. I changed function and variable names to be as semantic as possible.

I have not tested thoroughly, so it's possible I've missed something. Please provide feedback.