When all slots are booked in a day, this day should have a class "booked" in the calendar to apply an other color.
Is it possible ?
Thanks

Comments

jbfelix created an issue. See original summary.

rfmarcelino’s picture

Thank you jbfelix for your feedback,
Possible, yes. It will require changing the getDays endpoint to call the getSlots for each day.
We'll need to check the impact of those up to 31 (days) extra queries.

rfmarcelino’s picture

Status: Active » Needs review

Available on 1.1.x for review.
composer require 'drupal/webform_booking:1.1.x-dev@dev'

electric.larry’s picture

Version: 1.0.11 » 1.1.x-dev
Status: Needs review » Reviewed & tested by the community

Tested on 1.1.x. Works as described in the issue description. Instead of adding the class "booked" as suggested by @jbfelix it adds the more descriptive class name "no-slots".

rfmarcelino’s picture

Status: Reviewed & tested by the community » Fixed
rfmarcelino’s picture

Status: Fixed » Closed (fixed)