Ghost/ghost/admin/app/helpers/feature.js
Kevin Ansfield 919ec733e7
Moved onboarding display check into new onboarding service (#19938)
refs
https://linear.app/tryghost/issue/IPC-92/add-logic-for-completing-steps

- added `onboarding` service to manage logic and state for the onboarding display and it's various steps
- added basic "display onboarding checklist" state to replicate the basic feature flag toggle along with making sure it's only shown to owners
- added acceptance test file and missing mirage endpoints needed for the dashboard to load without error
2024-03-27 17:37:37 +00:00

11 lines
255 B
JavaScript

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);
}
}