Skip to content

Commit 4e2d6d1

Browse files
committed
108045: Fix for repeatable date field labels
1 parent ca86437 commit 4e2d6d1

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/app/shared/form/builder/ds-dynamic-form-ui/models/date-picker/date-picker.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div>
22
<fieldset class="d-flex">
3-
<legend [id]="'legend_' + model.id" [ngClass]="[getClass('element', 'label'), getClass('grid', 'label')]">
3+
<legend *ngIf="!model.repeatable" [id]="'legend_' + model.id" [ngClass]="[getClass('element', 'label'), getClass('grid', 'label')]">
44
{{model.placeholder}} <span *ngIf="model.required">*</span>
55
</legend>
66
<ds-number-picker

src/app/shared/form/builder/ds-dynamic-form-ui/models/date-picker/date-picker.model.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const DYNAMIC_FORM_CONTROL_TYPE_DSDATEPICKER = 'DATE';
1515
export interface DynamicDsDateControlModelConfig extends DynamicDatePickerModelConfig {
1616
legend?: string;
1717
typeBindRelations?: DynamicFormControlRelation[];
18+
repeatable: boolean;
1819
}
1920

2021
/**
@@ -37,7 +38,7 @@ export class DynamicDsDatePickerModel extends DynamicDateControlModel {
3738
this.metadataValue = (config as any).metadataValue;
3839
this.typeBindRelations = config.typeBindRelations ? config.typeBindRelations : [];
3940
this.hiddenUpdates = new BehaviorSubject<boolean>(this.hidden);
40-
41+
this.repeatable = config.repeatable;
4142
// This was a subscription, then an async setTimeout, but it seems unnecessary
4243
const parentModel = this.getRootParent(this);
4344
if (parentModel && isNotUndefined(parentModel.hidden)) {

0 commit comments

Comments
 (0)