Skip to content

Commit

Permalink
Kavitha | A-1204378118194874 | add waitlist status to dateless appoin…
Browse files Browse the repository at this point in the history
…tments (#273)
  • Loading branch information
kavitha-sundararajan authored May 17, 2023
1 parent 45d4b10 commit 9eac828
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ import {
TODAY,
WALK_IN_APPOINTMENT_TYPE,
VIRTUAL_APPOINTMENT_TYPE,
SCHEDULED_APPOINTMENT_TYPE
SCHEDULED_APPOINTMENT_TYPE,
APPOINTMENT_STATUSES
} from "../../constants";
import moment from "moment";
import {getDefaultOccurrences, getDuration} from "../../helper.js";
Expand Down Expand Up @@ -354,6 +355,7 @@ const AddAppointment = props => {
if (isValidAppointment()) {
const appointment = getAppointmentRequest();
if (isDatelessAppointment()) {
appointment.status = APPOINTMENT_STATUSES.WaitList
await save(appointment);
} else {
const response = await getAppointmentConflicts(appointment);
Expand Down
3 changes: 2 additions & 1 deletion ui/react-components/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export const APPOINTMENT_STATUSES = {
"CheckedIn": "CheckedIn",
"Completed": "Completed",
"Missed": "Missed",
"Cancelled": "Cancelled"
"Cancelled": "Cancelled",
"WaitList": "WaitList"
};

export const RECURRENCE_TERMINATION_AFTER = "After";
Expand Down

0 comments on commit 9eac828

Please sign in to comment.