Closed samuelmale closed 2 months ago
Size Change: -86.1 kB (-7.01%) ✅
Total Size: 1.14 MB
Filename | Size | Change | |
---|---|---|---|
dist/674.js |
0 B | -86.2 kB (removed) | 🏆 |
In hindsight, maybe one improvement would be to not close the workspace when the user hits the cancel button so they don't have to manually restore it from the Side rail.
I agree, had the same impression. This needs to be resolved in the form-engine-app by getting rid of this call: https://github.com/openmrs/openmrs-esm-patient-chart/blob/main/packages/esm-form-engine-app/src/form-renderer/form-renderer.component.tsx#L35
Requirements
Summary
The workspace system exposes an API that prevents forms with draft data or unpersisted data from being closed accidentally, which could lead to data loss. This functionality was supported by the form engine prior to the migration; this PR restores that support in the form engine.
Screenshots
Related Issue
Other