consul/ui/packages/consul-ui/app/helpers/feature-flag.js

11 lines
233 B
JavaScript

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