Automatically set the appointment color based on the service selection

This commit is contained in:
Alex Tselegidis 2024-03-18 17:31:43 +00:00
parent da6d017ff1
commit d4be65e4a4

View file

@ -365,6 +365,10 @@ App.Components.AppointmentsModal = (function () {
return Number(availableService.id) === Number(serviceId);
});
if (service?.color) {
App.Components.ColorSelection.getColor($appointmentColor, service.color);
}
const duration = service ? service.duration : 60;
const startDateTimeObject = App.Utils.UI.getDateTimePickerValue($startDatetime);