File tree 1 file changed +0
-28
lines changed
app/components/course-page
1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change 1
- import { action } from '@ember/object' ;
2
- import { service } from '@ember/service' ;
3
1
import Component from '@glimmer/component' ;
4
- import { tracked } from '@glimmer/tracking' ;
5
2
import type RepositoryModel from 'codecrafters-frontend/models/repository' ;
6
- import type CoursePageStateService from 'codecrafters-frontend/services/course-page-state' ;
7
3
import Step from 'codecrafters-frontend/utils/course-page-step-list/step' ;
8
4
9
5
interface Signature {
@@ -20,33 +16,9 @@ interface Signature {
20
16
}
21
17
22
18
export default class StepContentComponent extends Component < Signature > {
23
- @tracked previousStepsIncompleteModalWasDismissed = false ;
24
- @tracked lastSeenStepId : string | null = null ;
25
-
26
- @service declare coursePageState : CoursePageStateService ;
27
-
28
19
get shouldHideCompletionNotice ( ) : boolean {
29
20
return this . args . step . type === 'IntroductionStep' || this . args . step . type === 'SetupStep' ;
30
21
}
31
-
32
- get shouldShowPreviousStepsIncompleteModal ( ) : boolean {
33
- return ! this . previousStepsIncompleteModalWasDismissed && this . args . step . status === 'locked' ;
34
- }
35
-
36
- @action
37
- handlePreviousStepsIncompleteModalDismissed ( ) {
38
- this . previousStepsIncompleteModalWasDismissed = true ;
39
- }
40
-
41
- @action
42
- handleStepIdUpdated ( ) {
43
- if ( this . args . step . id === this . lastSeenStepId ) {
44
- return ;
45
- }
46
-
47
- this . lastSeenStepId = this . args . step . id ;
48
- this . previousStepsIncompleteModalWasDismissed = false ;
49
- }
50
22
}
51
23
52
24
declare module '@glint/environment-ember-loose/registry' {
You can’t perform that action at this time.
0 commit comments