-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(fix) O3-4358: Remove bed description and fix location change bug #1447
Conversation
packages/esm-bed-management-app/src/bed-administration/bed-administration-form.component.tsx
Outdated
Show resolved
Hide resolved
export interface BedFormData extends BedWithLocation { | ||
description: string; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this type since description
is not needed
Size Change: +202 B (0%) Total Size: 7.27 MB ℹ️ View Unchanged
|
setValue('location', { display: selectedLocation.display, uuid: selectedLocation.uuid }); | ||
if (selectedLocation) | ||
setValue('location', { display: selectedLocation.display, uuid: selectedLocation.uuid }); | ||
else setValue('location', { display: '', uuid: '' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to account for when you press the x
option on a selected location option to clear the selection. Previously, this would cause an error since selectedLocation
would be null when you do so
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, other than the translation thing. Nice work!
f523a4d
to
1241ffa
Compare
1241ffa
to
0886e2c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Requirements
Summary
This PR adds translation support to some strings, fixes a bug that occurred when clearing a selected location in the bed creation form, removes the bed description since its not supported by the backend and updates the column header in ward summary component.
Screenshots
Column header now says
Type
instead ofName
, since the value shown is the bed type. Also the columndescription
is removedThe
description
field is removed from the bed form.Related Issue
https://issues.openmrs.org/browse/O3-4358
https://issues.openmrs.org/browse/O3-4359
Other