Skip to content

Commit

Permalink
Phani | A- 1204805491310541| Close Appointment Sidebar after save new…
Browse files Browse the repository at this point in the history
… Appointment (#310)

* Phani | Close sidebar after save new appointment

* Phani | Make priority Search case insensitive
  • Loading branch information
Phanindra-tw authored Oct 20, 2023
1 parent 9dcc2ca commit 45a1214
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,9 @@ const AddAppointment = props => {
const closeButton = <div className={classNames(close)}>
<Close24/>
</div>

if(showSuccessPopup){
return <Notification showMessage={showSuccessPopup} title={"Appointment Created!"} onClose={React.useContext(AppContext).onBack}/>
}
return (<div className={classNames(overlay)}>
<div data-testid="appointment-editor" className={classNames(appointmentEditor, appointmentDetails.appointmentType === RECURRING_APPOINTMENT_TYPE ? isRecurring : '')}>
<CancelConfirmation onBack={React.useContext(AppContext).onBack} triggerComponent={closeButton} skipConfirm={appointmentTouched !== "touched"}/>
Expand Down Expand Up @@ -867,7 +869,6 @@ const AddAppointment = props => {
closeOnDocumentClick: false,
closeOnEscape: false
}) : undefined}
<Notification showMessage={showSuccessPopup} title={"Appointment Created"} onClose={() => setShowSuccessPopup(false)}/>
</div>
<div data-testid="Appointment-editer-footer">
<AppointmentEditorFooter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const AppointmentCategory = (props) => {
});
const title = <Title text={placeHolder} isRequired={isRequired}/>
const filterItems = data => {
return data.item.label.includes(data.inputValue);
return data.item.label.toLowerCase().includes(data.inputValue.toLowerCase());
}

return (
Expand Down

0 comments on commit 45a1214

Please sign in to comment.