33 Component ,
44 ComponentFactoryResolver ,
55 ContentChildren ,
6- EventEmitter ,
7- Inject ,
6+ EventEmitter , Inject ,
87 Input ,
98 NgZone ,
109 OnChanges ,
@@ -59,9 +58,7 @@ import { TranslateService } from '@ngx-translate/core';
5958import { ReorderableRelationship } from './existing-metadata-list-element/existing-metadata-list-element.component' ;
6059
6160import { DYNAMIC_FORM_CONTROL_TYPE_ONEBOX } from './models/onebox/dynamic-onebox.model' ;
62- import {
63- DYNAMIC_FORM_CONTROL_TYPE_SCROLLABLE_DROPDOWN
64- } from './models/scrollable-dropdown/dynamic-scrollable-dropdown.model' ;
61+ import { DYNAMIC_FORM_CONTROL_TYPE_SCROLLABLE_DROPDOWN } from './models/scrollable-dropdown/dynamic-scrollable-dropdown.model' ;
6562import { DYNAMIC_FORM_CONTROL_TYPE_TAG } from './models/tag/dynamic-tag.model' ;
6663import { DYNAMIC_FORM_CONTROL_TYPE_DSDATEPICKER } from './models/date-picker/date-picker.model' ;
6764import { DYNAMIC_FORM_CONTROL_TYPE_LOOKUP } from './models/lookup/dynamic-lookup.model' ;
@@ -73,9 +70,7 @@ import { DsDynamicTagComponent } from './models/tag/dynamic-tag.component';
7370import { DsDatePickerComponent } from './models/date-picker/date-picker.component' ;
7471import { DsDynamicListComponent } from './models/list/dynamic-list.component' ;
7572import { DsDynamicOneboxComponent } from './models/onebox/dynamic-onebox.component' ;
76- import {
77- DsDynamicScrollableDropdownComponent
78- } from './models/scrollable-dropdown/dynamic-scrollable-dropdown.component' ;
73+ import { DsDynamicScrollableDropdownComponent } from './models/scrollable-dropdown/dynamic-scrollable-dropdown.component' ;
7974import { DsDynamicLookupComponent } from './models/lookup/dynamic-lookup.component' ;
8075import { DsDynamicFormGroupComponent } from './models/form-group/dynamic-form-group.component' ;
8176import { DsDynamicFormArrayComponent } from './models/array-group/dynamic-form-array.component' ;
@@ -87,9 +82,7 @@ import { CustomSwitchComponent } from './models/custom-switch/custom-switch.comp
8782import { find , map , startWith , switchMap , take } from 'rxjs/operators' ;
8883import { combineLatest as observableCombineLatest , Observable , Subscription } from 'rxjs' ;
8984import { DsDynamicTypeBindRelationService } from './ds-dynamic-type-bind-relation.service' ;
90- import {
91- DsDynamicRelationInlineGroupComponent
92- } from './models/relation-inline-group/dynamic-relation-inline-group.components' ;
85+ import { DsDynamicRelationInlineGroupComponent } from './models/relation-inline-group/dynamic-relation-inline-group.components' ;
9386import { SearchResult } from '../../../search/models/search-result.model' ;
9487import { DSpaceObject } from '../../../../core/shared/dspace-object.model' ;
9588import { NgbModal , NgbModalRef } from '@ng-bootstrap/ng-bootstrap' ;
@@ -130,6 +123,7 @@ import { APP_CONFIG, AppConfig } from '../../../../../config/app-config.interfac
130123import { itemLinksToFollow } from '../../../utils/relation-query.utils' ;
131124import { DynamicConcatModel } from './models/ds-dynamic-concat.model' ;
132125import { Metadata } from '../../../../core/shared/metadata.utils' ;
126+ import { DynamicLinkModel } from './models/ds-dynamic-link.model' ;
133127import { DsDynamicMarkdownComponent } from './models/markdown/dynamic-markdown.component' ;
134128import { DYNAMIC_FORM_CONTROL_TYPE_MARKDOWN } from './models/markdown/dynamic-markdown.model' ;
135129
@@ -560,13 +554,13 @@ export class DsDynamicFormControlContainerComponent extends DynamicFormControlCo
560554 addSecurityLevelToMetadata ( $event ) {
561555 this . model . securityLevel = $event ;
562556 this . securityLevel = $event ;
563- if ( this . model . parent && this . model . parent instanceof DynamicConcatModel ) {
557+ if ( this . model . parent && ( this . model . parent instanceof DynamicConcatModel || this . model . parent instanceof DynamicLinkModel ) ) {
564558 this . model . parent . securityLevel = $event ;
565559 }
566560 if ( this . model . value ) {
567561 this . model . securityLevel = $event ;
568562 this . securityLevel = $event ;
569- if ( this . model . parent && this . model . parent instanceof DynamicConcatModel ) {
563+ if ( this . model . parent && ( this . model . parent instanceof DynamicConcatModel || this . model . parent instanceof DynamicLinkModel ) ) {
570564 this . model . parent . securityLevel = $event ;
571565 }
572566 this . change . emit (
0 commit comments