timekit-io / booking-js

:date: Make a beautiful embeddable booking widget in minutes
https://developers.timekit.io/docs/booking-widget-v2
MIT License
2.42k stars 189 forks source link

Show availability from a subset of project resources #212

Open boardfish opened 3 years ago

boardfish commented 3 years ago

I expected to be able to use the resources config option in combination with project_id in this way: by supplying an array of resources to resources, I'd be able to pick from that subset of the resources linked to the project. Let's say the project has resource 1, 2, and 3 linked. If the resources array contained 1 and 4, both of those resources would be shown as it stands. But since 4 isn't on the project, I'd rather they weren't shown.

The resources config option instead overrides the resources list set on the project. I'd prefer the described behavior, but maybe there's reason for the two to coexist.