Skip to content

Commit 0810b43

Browse files
committed
Fixing english translation of the table.
1 parent 8fa8172 commit 0810b43

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/workday-entity/workday-entity-dialog.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</mtx-grid>
1313

1414
<ng-template #plannedColumnTemplate let-row let-col="colDef">
15-
<ng-container *ngIf="row['shift'] === '1'">
15+
<ng-container *ngIf="row['shiftId'] === '1'">
1616
<div class="flex-row">
1717
<mat-form-field>
1818
<mat-label>{{'Start' | translate}}</mat-label>
@@ -96,7 +96,7 @@
9696
</button>
9797
</div>
9898
</ng-container>
99-
<ng-container *ngIf="row['shift'] === '2'">
99+
<ng-container *ngIf="row['shiftId'] === '2'">
100100
<div class="flex-row">
101101
<mat-form-field>
102102
<mat-label>{{'Start' | translate}}</mat-label>
@@ -185,7 +185,7 @@
185185
</ng-template>
186186

187187
<ng-template #actualColumnTemplate let-row let-col="colDef">
188-
<ng-container *ngIf="row['shift'] === '1'">
188+
<ng-container *ngIf="row['shiftId'] === '1'">
189189
<div class="flex-row">
190190
<mat-form-field>
191191
<mat-label>{{'Start' | translate}}</mat-label>
@@ -267,7 +267,7 @@
267267
</button>
268268
</div>
269269
</ng-container>
270-
<ng-container *ngIf="row['shift'] === '2'">
270+
<ng-container *ngIf="row['shiftId'] === '2'">
271271
<div class="flex-row">
272272
<mat-form-field>
273273
<mat-label>{{'Start' | translate}}</mat-label>

eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/workday-entity/workday-entity-dialog.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export class WorkdayEntityDialogComponent implements OnInit {
134134
];
135135

136136
let shift2Data = {
137+
shiftId: '2',
137138
shift: this.translateService.instant('2nd'),
138139
plannedStart: this.plannedStartOfShift2,
139140
plannedEnd: this.plannedEndOfShift2,
@@ -144,6 +145,7 @@ export class WorkdayEntityDialogComponent implements OnInit {
144145
};
145146

146147
let shift1Data = {
148+
shiftId: '1',
147149
shift: this.translateService.instant('1st'),
148150
plannedStart: this.plannedStartOfShift1,
149151
plannedEnd: this.plannedEndOfShift1,

0 commit comments

Comments
 (0)