Skip to content

Commit e6ee154

Browse files
Copilotrenemadsen
andcommitted
Fix missing this. prefix for injected variables in ngOnInit (5 files)
Co-authored-by: renemadsen <[email protected]>
1 parent 0bbb5a3 commit e6ee154

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

eform-client/src/app/plugins/modules/backend-configuration-pn/components/reports/report-header/report-header.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ export class ReportHeaderComponent implements OnInit, OnDestroy {
4545

4646

4747
ngOnInit() {
48-
iconRegistry.addSvgIconLiteral('file-word', sanitizer.bypassSecurityTrustHtml(WordIcon));
49-
iconRegistry.addSvgIconLiteral('file-excel', sanitizer.bypassSecurityTrustHtml(ExcelIcon));
50-
iconRegistry.addSvgIconLiteral('file-pdf', sanitizer.bypassSecurityTrustHtml(PdfIcon));
48+
this.iconRegistry.addSvgIconLiteral('file-word', this.sanitizer.bypassSecurityTrustHtml(WordIcon));
49+
this.iconRegistry.addSvgIconLiteral('file-excel', this.sanitizer.bypassSecurityTrustHtml(ExcelIcon));
50+
this.iconRegistry.addSvgIconLiteral('file-pdf', this.sanitizer.bypassSecurityTrustHtml(PdfIcon));
5151

5252
const reportPnGenerateModel = this.reportStateService.extractData();
5353
this.generateForm = new FormGroup(

eform-client/src/app/plugins/modules/backend-configuration-pn/modules/compliance/components/compliance-case/compliance-case-page/compliance-case-page.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class ComplianceCasePageComponent implements OnInit {
6363
this.complianceId = +params['complianceId'];
6464
this.workerId = +params['siteId'];
6565
});
66-
activateRoute.queryParams.subscribe((params) => {
66+
this.activateRoute.queryParams.subscribe((params) => {
6767
this.reverseRoute = params['reverseRoute'];
6868
});
6969

eform-client/src/app/plugins/modules/backend-configuration-pn/modules/reports/components/report-header/report-header.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ export class ReportHeaderComponent implements OnInit, OnDestroy {
4242

4343

4444
ngOnInit() {
45-
iconRegistry.addSvgIconLiteral('file-word', sanitizer.bypassSecurityTrustHtml(WordIcon));
46-
iconRegistry.addSvgIconLiteral('file-excel', sanitizer.bypassSecurityTrustHtml(ExcelIcon));
47-
iconRegistry.addSvgIconLiteral('file-pdf', sanitizer.bypassSecurityTrustHtml(PdfIcon));
45+
this.iconRegistry.addSvgIconLiteral('file-word', this.sanitizer.bypassSecurityTrustHtml(WordIcon));
46+
this.iconRegistry.addSvgIconLiteral('file-excel', this.sanitizer.bypassSecurityTrustHtml(ExcelIcon));
47+
this.iconRegistry.addSvgIconLiteral('file-pdf', this.sanitizer.bypassSecurityTrustHtml(PdfIcon));
4848

4949
const reportPnGenerateModel = this.reportStateService.extractData();
5050
this.generateForm = new FormGroup(

eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-management/components/task-management-container/task-management-container.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ export class TaskManagementContainerComponent implements OnInit, OnDestroy {
9898

9999

100100
ngOnInit() {
101-
iconRegistry.addSvgIconLiteral('file-word', sanitizer.bypassSecurityTrustHtml(WordIcon));
102-
iconRegistry.addSvgIconLiteral('file-excel', sanitizer.bypassSecurityTrustHtml(ExcelIcon));
101+
this.iconRegistry.addSvgIconLiteral('file-word', this.sanitizer.bypassSecurityTrustHtml(WordIcon));
102+
this.iconRegistry.addSvgIconLiteral('file-excel', this.sanitizer.bypassSecurityTrustHtml(ExcelIcon));
103103
this.route.queryParams.subscribe(x => {
104104
if (x && x.diagramForShow) {
105105
this.diagramForShow = x.diagramForShow;

eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-tracker/components/task-tracker-container/task-tracker-container.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export class TaskTrackerContainerComponent implements OnInit, OnDestroy {
139139

140140

141141
ngOnInit() {
142-
iconRegistry.addSvgIconLiteral('file-excel', sanitizer.bypassSecurityTrustHtml(ExcelIcon));
142+
this.iconRegistry.addSvgIconLiteral('file-excel', this.sanitizer.bypassSecurityTrustHtml(ExcelIcon));
143143
this.route.queryParams.subscribe(x => {
144144
if (x && x.showDiagram) {
145145
this.showDiagram = x.showDiagram;

0 commit comments

Comments
 (0)