mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 20:43:08 +00:00
Removed label of a repeatable field when is added a new value.
This commit is contained in:
@@ -3,12 +3,13 @@ import {
|
||||
DynamicLookupNameModel,
|
||||
DynamicLookupNameModelConfig
|
||||
} from '../ds-dynamic-form-ui/models/lookup/dynamic-lookup-name.model';
|
||||
import { FormFieldMetadataValueObject } from '../models/form-field-metadata-value.model';
|
||||
|
||||
export class LookupNameFieldParser extends FieldParser {
|
||||
|
||||
public modelFactory(fieldValue: any): any {
|
||||
public modelFactory(fieldValue?: FormFieldMetadataValueObject | any, label?: boolean): any {
|
||||
if (this.configData.selectableMetadata[0].authority) {
|
||||
const lookupModelConfig: DynamicLookupNameModelConfig = this.initModel();
|
||||
const lookupModelConfig: DynamicLookupNameModelConfig = this.initModel(null, label);
|
||||
|
||||
this.setAuthorityOptions(lookupModelConfig, this.parserOptions.authorityUuid);
|
||||
|
||||
|
Reference in New Issue
Block a user