mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 19:03:21 +03:00
Automatically set the appointment color based on the service selection
This commit is contained in:
parent
da6d017ff1
commit
d4be65e4a4
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue