Fix #504 - Add support for required label to composite fields

This commit is contained in:
Clemente Raposo 2024-07-29 14:45:33 +01:00 committed by c.raposo
parent b7ccfc8346
commit e7b6af8cd7

View file

@ -41,6 +41,9 @@
<span class="field-group-label pt-2 pr-1">
<label *ngIf="attribute.labelKey && showLabel(attribute)">
<scrm-label [labelKey]="attribute.labelKey" [module]="getModule()"></scrm-label>
<ng-container *ngIf="attribute.definition.required && (['edit', 'create'].includes(mode))">
<span class="required">*</span>
</ng-container>
</label>
</span>