Skip to content

Commit 4cf59b9

Browse files
Changed to . #2532
1 parent 4cb6b71 commit 4cf59b9

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/main/webapp/site/src/app/classroom-monitor/step-info/step-info.component.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Component, Input } from '@angular/core';
2-
import { UpgradeModule } from '@angular/upgrade/static';
32
import { TeacherProjectService } from '../../../../../wise5/services/teacherProjectService';
43

54
@Component({
@@ -23,19 +22,18 @@ export class StepInfoComponent {
2322
rubricIconLabel: string;
2423
stepTitle: string;
2524

26-
constructor(upgrade: UpgradeModule, private ProjectService: TeacherProjectService) {
27-
this.$translate = upgrade.$injector.get('$filter')('translate');
25+
constructor(private ProjectService: TeacherProjectService) {
2826
}
2927

3028
ngOnInit() {
3129
this.stepTitle = this.ProjectService.getNodePositionAndTitleByNodeId(this.nodeId);
3230
if (this.hasAlert) {
3331
this.alertIconClass = this.hasNewAlert ? 'warn' : 'text-disabled';
3432
this.alertIconName = 'notifications';
35-
this.alertIconLabel = this.hasNewAlert ? this.$translate('HAS_ALERTS_NEW') :
36-
this.$translate('HAS_ALERTS_DISMISSED');
33+
this.alertIconLabel = this.hasNewAlert ? $localize`Has new alert(s)`:
34+
$localize`Has dismissed alert(s)`;
3735
}
3836
this.hasRubrics = this.ProjectService.getNumberOfRubricsByNodeId(this.nodeId) > 0;
39-
this.rubricIconLabel = this.$translate('STEP_HAS_RUBRICS_TIPS');
37+
this.rubricIconLabel = $localize`Step has rubrics/teaching tips`;
4038
}
4139
}

0 commit comments

Comments
 (0)