open-nomad/ui/app/services/config.js

15 lines
416 B
JavaScript
Raw Normal View History

import { equal } from '@ember/object/computed';
import Service from '@ember/service';
import { get } from '@ember/object';
2017-09-19 14:47:10 +00:00
import config from '../config/environment';
export default class ConfigService extends Service {
2017-09-19 14:47:10 +00:00
unknownProperty(path) {
return get(config, path);
}
2017-09-19 14:47:10 +00:00
@equal('environment', 'development') isDev;
@equal('environment', 'production') isProd;
@equal('environment', 'test') isTest;
}