Use the appointment color value when rendering the appointments on the calendar.

This commit is contained in:
Alex Tselegidis 2022-01-18 19:03:06 +01:00
parent 0f0b3c114e
commit 3594bb8294
2 changed files with 2 additions and 0 deletions

View File

@ -1077,6 +1077,7 @@ App.Utils.CalendarDefaultView = (function () {
start: moment(appointment.start_datetime).toDate(),
end: moment(appointment.end_datetime).toDate(),
allDay: false,
color: appointment.color,
data: appointment // Store appointment data for later use.
};

View File

@ -939,6 +939,7 @@ App.Utils.CalendarTableView = (function () {
start: moment(appointment.start_datetime).toDate(),
end: moment(appointment.end_datetime).toDate(),
allDay: false,
color: appointment.color,
data: appointment // Store appointment data for later use.
});
}