Skip to content

Commit 7c74905

Browse files
committed
[DSC-1379] feature: security switch is only visible if it is configured for the groups core metadata
1 parent 08948f2 commit 7c74905

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

src/app/shared/form/builder/ds-dynamic-form-ui/models/relation-group/modal/dynamic-relation-group-modal.components.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,13 @@ export class DsDynamicRelationGroupModalComponent extends DynamicFormControlComp
329329
}
330330
});
331331
}
332+
if (this.model.securityConfigLevel.length === 1) {
333+
modelGroup.group.forEach((item: any) => {
334+
item.securityConfigLevel = this.model.securityConfigLevel;
335+
item.toggleSecurityVisibility = false;
336+
item.securityLevel = this.model.securityLevel;
337+
});
338+
}
332339
}
333340

334341
private retrieveVocabulary(vocabularyOptions: VocabularyOptions): void {

src/app/shared/form/builder/ds-dynamic-form-ui/models/relation-inline-group/dynamic-relation-inline-group.components.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,13 @@ export class DsDynamicRelationInlineGroupComponent extends DynamicFormControlCom
199199
}
200200
});
201201
}
202+
if (this.model.securityConfigLevel.length === 1) {
203+
modelGroup.group.forEach((item: any) => {
204+
item.securityConfigLevel = this.model.securityConfigLevel;
205+
item.toggleSecurityVisibility = false;
206+
item.securityLevel = this.model.securityLevel;
207+
});
208+
}
202209
}
203210

204211
private getRowValue(formGroup: DynamicFormGroupModel, securityLevel?: number) {

0 commit comments

Comments
 (0)