-
Notifications
You must be signed in to change notification settings - Fork 51
Description
Using v0.7.0
I'm attempting to set the icons global, but it doesn't seem to be working. I'm sure I'm missing something stupid, but haven't found many examples to go by...
module.exports = function (environment) {
let ENV = {
modulePrefix: 'web-directory',
environment,
rootURL: '/',
locationType: 'hash',
EmberENV: {
MODEL_FACTORY_INJECTIONS: true,
FEATURES: {
}
},
APP: {
version: pkg.version,
semver: pkg.version + '-edge',
urlprefix: '',
buildNumber: process.env.BUILD_NUMBER || 'BUILDNUM',
libs: buildLibraryVersions()
},
'ember-cli-bootstrap-datetimepicker': {
icons: {
date: 'fa fa-calendar-alt',
next: 'fa fa-chevron-right',
previous: 'fa fa-chevron-left'
}
},
I can see the icons object when I do require('web-directory/config/environment') from the Chrome Inspector console...but when I step into the breakpoint at date: this.getWithDefault('config.icons.date', defaults.icons.date),, there's nothing at root.config.
I'm not sure if it makes a difference, but the environment config file is on my parent app, while the datetimepicker component is in an addon being used by one of the engines inside the parent app. It's clear that the datetimepicker code is being loaded, but for some reason it seems that its not loading, or not finding, the env variables?