Skip to content

Commit 58e8d25

Browse files
renemadsenclaude
andcommitted
fix(assigned-site-dialog): remove Google Sheet checkbox, clean up tab conditions
useGoogleSheetAsDefault is always true and no longer a user option. Remove the checkbox from the General tab and strip !data.useGoogleSheetAsDefault from all tab *ngIf conditions (Plan hours, 1st-5th shift tabs). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2393f1e commit 58e8d25

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
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: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,8 @@
66
>
77
<mat-tab label="{{'General' | translate }}" >
88

9-
<div class="d-flex flex-row" *ngIf="!data.resigned && selectCurrentUserIsFirstUser$ | async">
10-
<mat-checkbox class="p-1"
11-
[id]="'useGoogleSheetAsDefault'"
12-
[name]="'useGoogleSheetAsDefault'"
13-
formControlName="useGoogleSheetAsDefault">
14-
<div>
15-
<div>{{ 'Use Google Sheet as default' | translate }}</div>
16-
<small class="checkbox-description"></small>
17-
</div>
18-
</mat-checkbox>
19-
</div>
209
<div class="d-flex flex-row"
21-
*ngIf="!data.resigned && !data.useGoogleSheetAsDefault && selectCurrentUserIsFirstUser$ | async">
10+
*ngIf="!data.resigned && selectCurrentUserIsFirstUser$ | async">
2211
<mat-checkbox class="p-1"
2312
[id]="'useOnlyPlanHours'"
2413
[name]="'useOnlyPlanHours'"
@@ -237,7 +226,7 @@ <h3 class="section-header">{{ 'Employee status' | translate }}</h3>
237226
</div>
238227
</mat-tab>
239228
<mat-tab label="{{'Plan hours' | translate }} "
240-
*ngIf="data.useOnlyPlanHours && !data.useGoogleSheetAsDefault && selectCurrentUserIsFirstUser$ | async">
229+
*ngIf="data.useOnlyPlanHours && selectCurrentUserIsFirstUser$ | async">
241230
<div formGroupName="planHours">
242231
<div class="d-flex flex-row"
243232
*ngFor="let day of ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']">
@@ -330,7 +319,7 @@ <h3 class="section-header">{{ 'Employee status' | translate }}</h3>
330319
</div>
331320
</mat-tab>
332321
<mat-tab label="{{'1st shift' | translate }}"
333-
*ngIf="!data.useOnlyPlanHours && !data.useGoogleSheetAsDefault && selectCurrentUserIsFirstUser$ | async">
322+
*ngIf="!data.useOnlyPlanHours && selectCurrentUserIsFirstUser$ | async">
334323
<div [formGroupName]="'firstShift'">
335324
<ng-container *ngIf="selectCurrentUserIsAdmin$ | async">
336325
<div class="d-flex flex-row"
@@ -390,7 +379,7 @@ <h3 class="section-header">{{ 'Employee status' | translate }}</h3>
390379
</div>
391380
</mat-tab>
392381
<mat-tab label="{{'2nd shift' | translate }}"
393-
*ngIf="!data.useOnlyPlanHours && !data.useGoogleSheetAsDefault && selectCurrentUserIsFirstUser$ | async">
382+
*ngIf="!data.useOnlyPlanHours && selectCurrentUserIsFirstUser$ | async">
394383
<div [formGroupName]="'secondShift'">
395384
<ng-container *ngIf="selectCurrentUserIsAdmin$ | async">
396385
<div class="d-flex flex-row"
@@ -450,7 +439,7 @@ <h3 class="section-header">{{ 'Employee status' | translate }}</h3>
450439
</div>
451440
</mat-tab>
452441
<mat-tab label="{{'3rd shift' | translate }}"
453-
*ngIf="data.thirdShiftActive && !data.useOnlyPlanHours && !data.useGoogleSheetAsDefault && selectCurrentUserIsFirstUser$ | async">
442+
*ngIf="data.thirdShiftActive && !data.useOnlyPlanHours && selectCurrentUserIsFirstUser$ | async">
454443
<div [formGroupName]="'thirdShift'">
455444
<ng-container *ngIf="selectCurrentUserIsAdmin$ | async">
456445
<div class="d-flex flex-row"
@@ -510,7 +499,7 @@ <h3 class="section-header">{{ 'Employee status' | translate }}</h3>
510499
</div>
511500
</mat-tab>
512501
<mat-tab label="{{'4th shift' | translate }}"
513-
*ngIf="data.thirdShiftActive && data.fourthShiftActive && !data.useOnlyPlanHours && !data.useGoogleSheetAsDefault && selectCurrentUserIsFirstUser$ | async">
502+
*ngIf="data.thirdShiftActive && data.fourthShiftActive && !data.useOnlyPlanHours && selectCurrentUserIsFirstUser$ | async">
514503
<div [formGroupName]="'fourthShift'">
515504
<ng-container *ngIf="selectCurrentUserIsAdmin$ | async">
516505
<div class="d-flex flex-row"
@@ -570,7 +559,7 @@ <h3 class="section-header">{{ 'Employee status' | translate }}</h3>
570559
</div>
571560
</mat-tab>
572561
<mat-tab label="{{'5th shift' | translate }}"
573-
*ngIf="data.thirdShiftActive && data.fourthShiftActive && data.fifthShiftActive && !data.useOnlyPlanHours && !data.useGoogleSheetAsDefault && selectCurrentUserIsFirstUser$ | async">
562+
*ngIf="data.thirdShiftActive && data.fourthShiftActive && data.fifthShiftActive && !data.useOnlyPlanHours && selectCurrentUserIsFirstUser$ | async">
574563
<div [formGroupName]="'fifthShift'">
575564
<ng-container *ngIf="selectCurrentUserIsAdmin$ | async">
576565
<div class="d-flex flex-row"

0 commit comments

Comments
 (0)