Ghost/ghost/admin/app/helpers/feature.js

11 lines
255 B
JavaScript
Raw Permalink Normal View History

import Helper from '@ember/component/helper';
import {inject as service} from '@ember/service';
export default class FeatureHelper extends Helper {
@service feature;
compute([featureFlag]) {
return this.feature.get(featureFlag);
}
}