mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[TLC-254] Strip out irrelevant metadata security lvl (as per review)
This commit is contained in:
@@ -15,9 +15,6 @@ export const DYNAMIC_FORM_CONTROL_TYPE_DSDATEPICKER = 'DATE';
|
||||
export interface DynamicDsDateControlModelConfig extends DynamicDatePickerModelConfig {
|
||||
legend?: string;
|
||||
typeBindRelations?: DynamicFormControlRelation[];
|
||||
securityLevel?: number;
|
||||
securityConfigLevel?: number[];
|
||||
toggleSecurityVisibility?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -28,9 +25,6 @@ export class DynamicDsDatePickerModel extends DynamicDateControlModel {
|
||||
@serializable() typeBindRelations: DynamicFormControlRelation[];
|
||||
@serializable() readonly type: string = DYNAMIC_FORM_CONTROL_TYPE_DSDATEPICKER;
|
||||
@serializable() metadataValue: MetadataValue;
|
||||
@serializable() securityLevel?: number;
|
||||
@serializable() securityConfigLevel?: number[];
|
||||
@serializable() toggleSecurityVisibility = true;
|
||||
malformedDate: boolean;
|
||||
legend: string;
|
||||
hasLanguages = false;
|
||||
@@ -60,8 +54,4 @@ export class DynamicDsDatePickerModel extends DynamicDateControlModel {
|
||||
}
|
||||
}
|
||||
|
||||
get hasSecurityLevel(): boolean {
|
||||
return isNotEmpty(this.securityLevel);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -265,7 +265,7 @@ export class FormBuilderService extends DynamicFormService {
|
||||
|
||||
modelFromConfiguration(submissionId: string, json: string | SubmissionFormsModel, scopeUUID: string, sectionData: any = {},
|
||||
submissionScope?: string, readOnly = false, typeBindModel = null,
|
||||
isInnerForm = false, securityConfig: any = null): DynamicFormControlModel[] | never {
|
||||
isInnerForm = false): DynamicFormControlModel[] | never {
|
||||
let rows: DynamicFormControlModel[] = [];
|
||||
const rawData = typeof json === 'string' ? JSON.parse(json, parseReviver) : json;
|
||||
if (rawData.rows && !isEmpty(rawData.rows)) {
|
||||
|
Reference in New Issue
Block a user