Skip to content

Commit 5278021

Browse files
Copilotrenemadsen
andcommitted
Fix missing this. prefix for MAT_DIALOG_DATA variables in 4 components
Co-authored-by: renemadsen <[email protected]>
1 parent 41d3ebb commit 5278021

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

eform-client/src/app/plugins/modules/backend-configuration-pn/components/properties/property-actions/property-docx-report-modal/property-docx-report-modal.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class PropertyDocxReportModalComponent implements OnInit, OnDestroy {
4040

4141
ngOnInit() {
4242
this.getPropertyAreasSub$ = this.backendConfigurationPnPropertiesService
43-
.getPropertyAreas(propertyId)
43+
.getPropertyAreas(this.propertyId)
4444
.subscribe((data) => {
4545
if (data && data.success && data.model) {
4646
this.areasList = data.model.filter(x => x.activated && x.name === '24. IE-indberetning');

eform-client/src/app/plugins/modules/backend-configuration-pn/components/properties/property-actions/property-edit-areas-modal/property-areas-edit-modal.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ export class PropertyAreasEditModalComponent implements OnInit {
5858

5959

6060
ngOnInit() {
61-
this.selectedProperty = {...model.selectedProperty, languagesIds: []};
61+
this.selectedProperty = {...this.model.selectedProperty, languagesIds: []};
6262
this.selectAuthIsAdmin$.subscribe((isAdmin) => {
63-
this.selectedPropertyAreas = model.propertyAreas
63+
this.selectedPropertyAreas = this.model.propertyAreas
6464
.filter(x => (!this.disabledAreas.includes(x.name) || isAdmin));
6565
});
6666

eform-client/src/app/plugins/modules/backend-configuration-pn/components/properties/property-actions/property-edit-modal/property-edit-modal.component.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,20 @@ export class PropertyEditModalComponent implements OnInit, OnDestroy {
4343

4444

4545
ngOnInit() {
46-
this.selectedLanguages = model.languages.map((x) => ({ id: x.id, checked: true }));
46+
this.selectedLanguages = this.model.languages.map((x) => ({ id: x.id, checked: true }));
4747

4848
this.editPropertyForm = this.fb.group({
49-
cvr: [model.cvr, Validators.required],
50-
mainMailAddress: [model.mainMailAddress],
51-
name: [model.name, Validators.required],
52-
chr: [model.chr],
53-
address: [model.address],
54-
workorderEnable: [model.workorderEnable || false],
55-
isFarm: [model.isFarm || false],
56-
industryCode: [model.industryCode || '']
49+
cvr: [this.model.cvr, Validators.required],
50+
mainMailAddress: [this.model.mainMailAddress],
51+
name: [this.model.name, Validators.required],
52+
chr: [this.model.chr],
53+
address: [this.model.address],
54+
workorderEnable: [this.model.workorderEnable || false],
55+
isFarm: [this.model.isFarm || false],
56+
industryCode: [this.model.industryCode || '']
5757
});
5858

59-
this.propertyIsFarm = model.isFarm || false;
59+
this.propertyIsFarm = this.model.isFarm || false;
6060
}
6161

6262
hide() {

eform-client/src/app/plugins/modules/backend-configuration-pn/modules/area-rules/components/area-rule-edit-modal/area-rule-edit-modal.component.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ export class AreaRuleEditModalComponent implements OnInit {
131131

132132

133133
ngOnInit() {
134-
this.planningStatus = model.planningStatus;
134+
this.planningStatus = this.model.planningStatus;
135135
//this.selectedAreaRule = R.clone(model.areaRule);
136136
this.selectedAreaRule = new AreaRuleUpdateModel();
137-
this.selectedAreaRule.id = model.areaRule.id;
138-
this.selectedAreaRule.eformId = model.areaRule.eformId;
139-
this.selectedAreaRule.eformName = model.areaRule.eformName;
140-
this.selectedAreaRule.typeSpecificFields = R.clone(model.areaRule.typeSpecificFields);
141-
this.selectedAreaRule.translatedNames = R.clone(model.areaRule.translatedNames);
142-
this.selectedArea = model.selectedArea;
137+
this.selectedAreaRule.id = this.model.areaRule.id;
138+
this.selectedAreaRule.eformId = this.model.areaRule.eformId;
139+
this.selectedAreaRule.eformName = this.model.areaRule.eformName;
140+
this.selectedAreaRule.typeSpecificFields = R.clone(this.model.areaRule.typeSpecificFields);
141+
this.selectedAreaRule.translatedNames = R.clone(this.model.areaRule.translatedNames);
142+
this.selectedArea = this.model.selectedArea;
143143

144144
this.typeahead
145145
.pipe(

0 commit comments

Comments
 (0)