mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
108045: Fix for repeatable date field labels
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<div>
|
||||
<fieldset class="d-flex">
|
||||
<legend [id]="'legend_' + model.id" [ngClass]="[getClass('element', 'label'), getClass('grid', 'label')]">
|
||||
<legend *ngIf="!model.repeatable" [id]="'legend_' + model.id" [ngClass]="[getClass('element', 'label'), getClass('grid', 'label')]">
|
||||
{{model.placeholder}} <span *ngIf="model.required">*</span>
|
||||
</legend>
|
||||
<ds-number-picker
|
||||
|
@@ -15,6 +15,7 @@ export const DYNAMIC_FORM_CONTROL_TYPE_DSDATEPICKER = 'DATE';
|
||||
export interface DynamicDsDateControlModelConfig extends DynamicDatePickerModelConfig {
|
||||
legend?: string;
|
||||
typeBindRelations?: DynamicFormControlRelation[];
|
||||
repeatable: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -37,7 +38,7 @@ export class DynamicDsDatePickerModel extends DynamicDateControlModel {
|
||||
this.metadataValue = (config as any).metadataValue;
|
||||
this.typeBindRelations = config.typeBindRelations ? config.typeBindRelations : [];
|
||||
this.hiddenUpdates = new BehaviorSubject<boolean>(this.hidden);
|
||||
|
||||
this.repeatable = config.repeatable;
|
||||
// This was a subscription, then an async setTimeout, but it seems unnecessary
|
||||
const parentModel = this.getRootParent(this);
|
||||
if (parentModel && isNotUndefined(parentModel.hidden)) {
|
||||
|
Reference in New Issue
Block a user