mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
90d8b41f63
ref https://linear.app/tryghost/issue/IPC-92/add-logic-for-completing-steps - added in-memory step completion to `onboarding` service - wired up the onboarding checklist to mark steps as completed when clicked - extracted re-used step template and logic into components/helpers
11 lines
271 B
JavaScript
11 lines
271 B
JavaScript
import Helper from '@ember/component/helper';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default class IsOnboardingStepCompleted extends Helper {
|
|
@service onboarding;
|
|
|
|
compute([step]) {
|
|
return this.onboarding.isStepCompleted(step);
|
|
}
|
|
}
|