mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +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 {
|
export interface DynamicDsDateControlModelConfig extends DynamicDatePickerModelConfig {
|
||||||
legend?: string;
|
legend?: string;
|
||||||
typeBindRelations?: DynamicFormControlRelation[];
|
typeBindRelations?: DynamicFormControlRelation[];
|
||||||
securityLevel?: number;
|
|
||||||
securityConfigLevel?: number[];
|
|
||||||
toggleSecurityVisibility?: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -28,9 +25,6 @@ export class DynamicDsDatePickerModel extends DynamicDateControlModel {
|
|||||||
@serializable() typeBindRelations: DynamicFormControlRelation[];
|
@serializable() typeBindRelations: DynamicFormControlRelation[];
|
||||||
@serializable() readonly type: string = DYNAMIC_FORM_CONTROL_TYPE_DSDATEPICKER;
|
@serializable() readonly type: string = DYNAMIC_FORM_CONTROL_TYPE_DSDATEPICKER;
|
||||||
@serializable() metadataValue: MetadataValue;
|
@serializable() metadataValue: MetadataValue;
|
||||||
@serializable() securityLevel?: number;
|
|
||||||
@serializable() securityConfigLevel?: number[];
|
|
||||||
@serializable() toggleSecurityVisibility = true;
|
|
||||||
malformedDate: boolean;
|
malformedDate: boolean;
|
||||||
legend: string;
|
legend: string;
|
||||||
hasLanguages = false;
|
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 = {},
|
modelFromConfiguration(submissionId: string, json: string | SubmissionFormsModel, scopeUUID: string, sectionData: any = {},
|
||||||
submissionScope?: string, readOnly = false, typeBindModel = null,
|
submissionScope?: string, readOnly = false, typeBindModel = null,
|
||||||
isInnerForm = false, securityConfig: any = null): DynamicFormControlModel[] | never {
|
isInnerForm = false): DynamicFormControlModel[] | never {
|
||||||
let rows: DynamicFormControlModel[] = [];
|
let rows: DynamicFormControlModel[] = [];
|
||||||
const rawData = typeof json === 'string' ? JSON.parse(json, parseReviver) : json;
|
const rawData = typeof json === 'string' ? JSON.parse(json, parseReviver) : json;
|
||||||
if (rawData.rows && !isEmpty(rawData.rows)) {
|
if (rawData.rows && !isEmpty(rawData.rows)) {
|
||||||
|
Reference in New Issue
Block a user