Skip to content

Commit 992135c

Browse files
Copilotrenemadsen
andcommitted
Fix General tab rendering by adding formGroup wrapper
- Wrapped GeneralTabComponent in a div with [formGroup]="assignedSiteForm" directive - This ensures form context is available to formControlName directives in the child component - Matches pattern used by other tabs (Plan hours, Auto break, etc.) which also use wrapper divs - Fixes issue where General tab content was not rendering due to missing form context Co-authored-by: renemadsen <[email protected]>
1 parent f048060 commit 992135c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
[formGroup]="assignedSiteForm"
66
>
77
<mat-tab label="{{'General' | translate }}" >
8-
<app-assigned-site-general-tab
9-
[data]="data"
10-
[assignedSiteForm]="assignedSiteForm"
11-
[isFirstUser]="isFirstUser"
12-
[isAdmin]="isAdmin">
13-
</app-assigned-site-general-tab>
8+
<div [formGroup]="assignedSiteForm">
9+
<app-assigned-site-general-tab
10+
[data]="data"
11+
[assignedSiteForm]="assignedSiteForm"
12+
[isFirstUser]="isFirstUser"
13+
[isAdmin]="isAdmin">
14+
</app-assigned-site-general-tab>
15+
</div>
1416
</mat-tab>
1517
<mat-tab label="{{'Plan hours' | translate }} "
1618
*ngIf="data.useOnlyPlanHours && !data.useGoogleSheetAsDefault && isFirstUser">

0 commit comments

Comments
 (0)