Skip to content

Commit 4071e9d

Browse files
committed
feat(stage): rename shouldShowNeedHelpForumLink to shouldShowStage1ForumLinkCTA and update its logic
Updated the name of the `shouldShowNeedHelpForumLink` property to `shouldShowStage1ForumLinkCTA` and modified its logic to align with its new name.
1 parent bade66b commit 4071e9d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/controllers/course/stage/instructions.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ export default class CourseStageInstructionsController extends Controller {
5555
return !this.currentStep.courseStage.isFirst && this.currentStep.status === 'complete';
5656
}
5757

58-
get shouldShowNeedHelpForumLink() {
59-
return this.model.courseStage.isFirst && this.currentStep.testsStatus !== 'passed' && this.currentStep.status !== 'complete';
60-
}
61-
6258
get shouldShowPrerequisites() {
6359
return !!this.prerequisiteInstructionsMarkdown;
6460
}
6561

62+
get shouldShowStage1ForumLinkCTA() {
63+
return this.model.courseStage.isFirst && this.currentStep.testsStatus !== 'passed' && this.currentStep.status !== 'complete';
64+
}
65+
6666
get shouldShowTestRunnerCard() {
6767
return this.isCurrentStage && this.currentStep.status !== 'complete';
6868
}

app/templates/course/stage/instructions.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
</div>
8484
{{/if}}
8585

86-
{{#if this.shouldShowNeedHelpForumLink}}
86+
{{#if this.shouldShowStage1ForumLinkCTA}}
8787
<div class="prose dark:prose-invert prose-sm prose-compact ml-4 mb-10">
8888
<p>
8989
Need help?

0 commit comments

Comments
 (0)