Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(13396):lec removed #1529

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,38 +51,10 @@ export const ContingencyTestSectionGroup15and16: FormNode = {
{ value: 'pass', label: 'Pass' },
{ value: 'fail', label: 'Fail' },
],
validators: [
{ name: ValidatorNames.HideIfNotEqual, args: { sibling: 'testExpiryDate', value: 'pass' } },
{ name: ValidatorNames.HideIfNotEqual, args: { sibling: 'centralDocs', value: ['pass', 'prs'] } },
],
validators: [{ name: ValidatorNames.HideIfNotEqual, args: { sibling: 'testExpiryDate', value: 'pass' } }],
asyncValidators: [{ name: AsyncValidatorNames.PassResultDependantOnCustomDefects }],
type: FormNodeTypes.CONTROL,
},
{
name: 'centralDocs',
type: FormNodeTypes.GROUP,
children: [
{
name: 'issueRequired',
type: FormNodeTypes.CONTROL,
label: 'Issue documents centrally',
editType: FormNodeEditTypes.RADIO,
value: false,
options: [
{ value: true, label: 'Yes' },
{ value: false, label: 'No' },
],
validators: [{ name: ValidatorNames.HideIfParentSiblingEqual, args: { sibling: 'certificateNumber', value: true } }],
},
{
name: 'reasonsForIssue',
type: FormNodeTypes.CONTROL,
viewType: FormNodeViewTypes.HIDDEN,
editType: FormNodeEditTypes.HIDDEN,
value: [],
},
],
},
{
name: 'reasonForAbandoning',
type: FormNodeTypes.CONTROL,
Expand All @@ -104,12 +76,7 @@ export const ContingencyTestSectionGroup15and16: FormNode = {
label: 'Certificate number',
type: FormNodeTypes.CONTROL,
editType: FormNodeEditTypes.TEXT,
validators: [
{ name: ValidatorNames.Required },
{ name: ValidatorNames.Alphanumeric },
// Make required if test result is pass/prs, but issue documents centrally is false
{ name: ValidatorNames.IssueRequired },
],
validators: [{ name: ValidatorNames.Required }, { name: ValidatorNames.Alphanumeric }],
viewType: FormNodeViewTypes.HIDDEN,
required: true,
value: null,
Expand Down
Loading