Skip to content

Commit

Permalink
Merge pull request #613 from bcgov/SRS-224-new
Browse files Browse the repository at this point in the history
Made Reviewer Assignment Not Mandatory
  • Loading branch information
nikhila-aot authored Jan 31, 2024
2 parents 97fb67c + 674a87b commit 2b6c3f1
Show file tree
Hide file tree
Showing 6 changed files with 23,980 additions and 23,630 deletions.
22 changes: 11 additions & 11 deletions forms-flow-ai/epd-forms/Site Risk Classification Report.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
"height": ""
},
"type": "button",
"custom": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer/cssa-manager\") && \r\n(data.selectSdm===''|| data.selectCaseworker===''||data.selectSrco===''))\r\n{\r\n alert('Please assign reviewers to continue!');\r\n \r\n}\r\nelse\r\n{\r\n const submissionId = form._submission._id;\r\n const formId = form._submission.form;\r\n const formDataReqUrl = form.formio?form.formio.formUrl:(localStorage.getItem('customSubmissionUrl')+'/form/'+formId)+'/submission/'+submissionId;\r\n const formDataReqObj1 = { \"_id\": submissionId, \"data\": data};\r\n const formio = new Formio(formDataReqUrl);\r\n formio.saveSubmission(formDataReqObj1).then( result => {\r\n form.emit('customEvent', {\r\n type: \"actionComplete\", \r\n component: component,\r\n actionType: 'Accepted'\r\n }); \r\n }).catch((error)=>{\r\n //Error callback on not Save\r\n form.emit('customEvent', {\r\n type: \"actionError\", \r\n component: component,\r\n actionType:'Accepted'\r\n }); \r\n });\r\n}",
"custom": "const submissionId = form._submission._id;\n const formId = form._submission.form;\n const formDataReqUrl = form.formio?form.formio.formUrl:(localStorage.getItem('customSubmissionUrl')+'/form/'+formId)+'/submission/'+submissionId;\n const formDataReqObj1 = { \"_id\": submissionId, \"data\": data};\n const formio = new Formio(formDataReqUrl);\n formio.saveSubmission(formDataReqObj1).then( result => {\n form.emit('customEvent', {\n type: \"actionComplete\", \n component: component,\n actionType: 'Accepted'\n }); \n }).catch((error)=>{\n //Error callback on not Save\n form.emit('customEvent', {\n type: \"actionError\", \n component: component,\n actionType:'Accepted'\n }); \n });",
"input": true,
"keyModified": true,
"placeholder": "",
Expand Down Expand Up @@ -305,7 +305,7 @@
"showWordCount": false,
"allowMultipleMasks": false,
"addons": [],
"id": "ei0fqxf"
"id": "ee2sv6m"
},
{
"label": "Approved",
Expand Down Expand Up @@ -785,7 +785,7 @@
"allowCalculateOverride": false,
"validateOn": "change",
"validate": {
"required": true,
"required": false,
"onlyAvailableItems": false,
"customMessage": "",
"custom": "",
Expand Down Expand Up @@ -847,7 +847,7 @@
"include": "score",
"threshold": 0.3
},
"id": "el5mtlj",
"id": "eqqpt0n",
"defaultValue": "",
"sort": ""
}
Expand Down Expand Up @@ -928,7 +928,7 @@
"allowCalculateOverride": false,
"validateOn": "change",
"validate": {
"required": true,
"required": false,
"onlyAvailableItems": false,
"customMessage": "",
"custom": "",
Expand Down Expand Up @@ -990,7 +990,7 @@
"include": "score",
"threshold": 0.3
},
"id": "ea94sof",
"id": "e0djsx",
"defaultValue": "",
"sort": ""
}
Expand Down Expand Up @@ -1071,7 +1071,7 @@
"allowCalculateOverride": false,
"validateOn": "change",
"validate": {
"required": true,
"required": false,
"onlyAvailableItems": false,
"customMessage": "",
"custom": "",
Expand Down Expand Up @@ -1133,7 +1133,7 @@
"include": "score",
"threshold": 0.3
},
"id": "epvp7yj",
"id": "ee27bwl",
"defaultValue": "",
"sort": ""
}
Expand Down Expand Up @@ -4303,7 +4303,7 @@
"attributes": {},
"components": [
{
"id": "ele95t000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"id": "ele95t000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"key": "spropertyOwnerAndOrOperator",
"tree": false,
"type": "panel",
Expand Down Expand Up @@ -13713,7 +13713,7 @@
"attributes": {},
"components": [
{
"id": "eks0gu00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"id": "eks0gu00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"key": "exposurePathwayQuestionnaireAffectedParcel",
"tree": false,
"type": "panel",
Expand Down Expand Up @@ -17656,7 +17656,7 @@
}
],
"collapsible": false,
"id": "eo5mwyp000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"id": "eo5mwyp000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"placeholder": "",
"prefix": "",
"customClass": "",
Expand Down
Loading

0 comments on commit 2b6c3f1

Please sign in to comment.