File tree Expand file tree Collapse file tree
src/main/webapp/site/src/app/classroom-monitor/step-info Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Component , Input } from '@angular/core' ;
2- import { UpgradeModule } from '@angular/upgrade/static' ;
32import { 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}
You can’t perform that action at this time.
0 commit comments