scoutforpets / ember-fullcalendar

An Ember Component for FullCalendar and FullCalendar Scheduler
MIT License
39 stars 45 forks source link

Fixed issue with resource auto-updating #69

Open demsullivan opened 6 years ago

demsullivan commented 6 years ago

FullCalendar only supports refreshing resources via refetchResource if the resources option is a function or a JSON feed.

Relevant documentation: https://fullcalendar.io/docs/resource_data/refetchResources/ https://fullcalendar.io/docs/resource_data/resources_json_feed/ https://fullcalendar.io/docs/resource_data/resources_function/

This PR wraps options.resource with a function per the FullCalendar documentation if it's passed to the component as an array, so that the observeResources observer works properly.