Ghost/ghost/admin/app/helpers/enable-developer-experiments.js
Kevin Ansfield 235d5f1b8b Added {{enable-developer-experiments}} helper
no issue

- removes the need to have component backing classes with the `config` service injected
2020-10-09 11:10:39 +01:00

11 lines
240 B
JavaScript

import Helper from '@ember/component/helper';
import {inject as service} from '@ember/service';
export default Helper.extend({
config: service(),
compute() {
return this.config.get('enableDeveloperExperiments');
}
});