mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-03 03:55:26 +03:00
17 lines
435 B
JavaScript
17 lines
435 B
JavaScript
|
import Helper from '@ember/component/helper';
|
||
|
import {inject as service} from '@ember/service';
|
||
|
|
||
|
export default class OnboardingStepClasses extends Helper {
|
||
|
@service onboarding;
|
||
|
|
||
|
compute([step]) {
|
||
|
if (this.onboarding.isStepCompleted(step)) {
|
||
|
return 'gh-onboarding-item--completed';
|
||
|
}
|
||
|
|
||
|
if (this.onboarding.nextStep === step) {
|
||
|
return 'gh-onboarding-item--next';
|
||
|
}
|
||
|
}
|
||
|
}
|