ember-fullcalendar
Advanced tools
Comparing version 0.0.1 to 0.0.3
@@ -19,4 +19,17 @@ import Ember from 'ember'; | ||
// scheduler defaults to non-commercial license | ||
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives', | ||
schedulerLicenseKey: Ember.computed(function() { | ||
// load the consuming app's config | ||
const applicationConfig = this.container.lookupFactory('config:environment'), | ||
defaultSchedulerLicenseKey = 'CC-Attribution-NonCommercial-NoDerivatives'; | ||
if (applicationConfig && | ||
applicationConfig.emberFullCalendar && | ||
applicationConfig.emberFullCalendar.schedulerLicenseKey) { | ||
return applicationConfig.emberFullCalendar.schedulerLicenseKey; | ||
} | ||
return defaultSchedulerLicenseKey; | ||
}), | ||
fullCalendarOptions: [ | ||
@@ -23,0 +36,0 @@ // general display |
{ | ||
"name": "ember-fullcalendar", | ||
"version": "0.0.1", | ||
"version": "0.0.3", | ||
"description": "An Ember Component for FullCalendar and FullCalendar Scheduler", | ||
@@ -5,0 +5,0 @@ "directories": { |
@@ -83,1 +83,10 @@ # ember-fullcalendar | ||
``` | ||
## FullCalendar Scheduler License | ||
By default, the addon uses the [Free Trial License Key](http://fullcalendar.io/scheduler/download/) provided by FullCalendar. If you have a paid license key, you may set it by explicitly passing it into the component as `schedulerLicenseKey` or, the better option, is to set it in your `config/environment.js` file like so: | ||
```javascript | ||
emberFullCalendar: { | ||
schedulerLicenseKey: '<your license key>' | ||
} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13338
218
92