Skip to content

Commit 87a731c

Browse files
renemadsenclaude
andcommitted
fix(assigned-site-dialog): hide Lønregler section when no pay rule sets exist
Gate both the section header and the PayRuleSet dropdown on availablePayRuleSets.length > 0 so the entire Lønregler block is hidden when no pay rule sets have been configured in the system. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a099deb commit 87a731c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
</mat-checkbox>
3131
</div>
3232

33-
<!-- ========= Payroll rules ========= -->
34-
<h3 class="section-header" *ngIf="!data.resigned && selectCurrentUserIsAdmin$ | async">{{ 'Payroll rules' | translate }}</h3>
33+
<!-- ========= Payroll rules (hidden when no pay rule sets exist) ========= -->
34+
<h3 class="section-header" *ngIf="!data.resigned && availablePayRuleSets.length > 0 && selectCurrentUserIsAdmin$ | async">{{ 'Payroll rules' | translate }}</h3>
3535

36-
<div class="d-flex flex-row" *ngIf="!data.resigned && selectCurrentUserIsAdmin$ | async">
36+
<div class="d-flex flex-row" *ngIf="!data.resigned && availablePayRuleSets.length > 0 && selectCurrentUserIsAdmin$ | async">
3737
<mat-form-field class="p-1 w-100">
3838
<mat-label>{{ 'Pay Rule Set' | translate }}</mat-label>
3939
<mtx-select

0 commit comments

Comments
 (0)