Skip to content

Commit

Permalink
[TLC-254] Strip out irrelevant metadata security lvl (as per review)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshepherd committed Apr 22, 2022
1 parent f97a877 commit 93d2f5d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand All @@ -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;
Expand Down Expand Up @@ -60,8 +54,4 @@ export class DynamicDsDatePickerModel extends DynamicDateControlModel {
}
}

get hasSecurityLevel(): boolean {
return isNotEmpty(this.securityLevel);
}

}
2 changes: 1 addition & 1 deletion src/app/shared/form/builder/form-builder.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 93d2f5d

Please sign in to comment.