Skip to content

Commit

Permalink
fixed displayed text
Browse files Browse the repository at this point in the history
  • Loading branch information
midhun-aot committed Nov 28, 2023
1 parent 5b66ee7 commit 674dcf4
Showing 1 changed file with 78 additions and 72 deletions.
150 changes: 78 additions & 72 deletions forms-flow-ai/epd-forms/bundling/Site Risk Classification Report.json
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@
"eq": "",
"json": ""
},
"customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\nconst roles = UserDetails[\"role\"];\n\nif(roles.includes(\"formsflow-reviewer/site-risk-classification-officer\")) \n{\n show = true;\n}\nelse if (roles.includes(\"formsflow-reviewer/caseworker\") &&\ndata.srcrBundleStatus === \"srcrSrcoAccepted\")\n{\n if (data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\" ||\n data.siteRiskClassification !== 'notHighRisk')\n show = false;\nelse\n show = true;\n}\nelse if (roles.includes(\"formsflow-reviewer/caseworker\") && data.srcrBundleStatus === \"srcrCaseworkerAccepted\")\n{\n // Incase of returned by SDM\n show = true;\n}\nelse\n{\n show = false;\n}",
"customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer/site-risk-classification-officer\")) \r\n{\r\n show = true;\r\n}\r\nelse if (roles.includes(\"formsflow-reviewer/caseworker\") &&\r\ndata.srcrBundleStatus === \"srcrSrcoAccepted\")\r\n{\r\n if (data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\" ||\r\n data.siteRiskClassification !== 'notHighRisk')\r\n show = false;\r\nelse\r\n show = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}",
"logic": [],
"attributes": {},
"overlay": {
Expand Down Expand Up @@ -1072,7 +1072,7 @@
"showWordCount": false,
"allowMultipleMasks": false,
"addons": [],
"id": "eilltmi"
"id": "eznm0q"
},
{
"label": "Approved",
Expand Down Expand Up @@ -1195,7 +1195,7 @@
"eq": "",
"json": ""
},
"customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\nconst roles = UserDetails[\"role\"];\r\nconst taskUrl = window.location.pathname.split('/');\r\nconst taskId = taskUrl[2];\r\nconst authToken = localStorage.getItem(\"authToken\");\r\nconst bpmUrl = localStorage.getItem(\"bpmApiUrl\");\r\nvar reqUrl = bpmUrl + \"/task/\" + taskId + \"/variables\";\r\n\r\n getData(reqUrl, authToken).then((response) => {\r\n \r\n \t\t var applicationStatus = response.applicationStatus?response.applicationStatus.value:'';\r\n\t\t var isCssaResubmitted = response.isCssaResubmitted?response.isCssaResubmitted.value:false;\r\n \t\t var isDeraResubmitted = response.isDeraResubmitted?response.isDeraResubmitted.value:false;\r\n\r\n\t if(isDeraResubmitted){\r\n \t\t component.disabled = true;\r\n\t component.description = 'Disabled since DERA resubmission in progress';\r\n\t instance.triggerRedraw();\r\n\r\n\t }\r\n\t else if (isCssaResubmitted) {\r\n\r\n\t component.disabled = true;\r\n\t component.description = 'Disabled since CSSA resubmission in progress';\r\n\t instance.triggerRedraw();\r\n\t } else {\r\n\t component.description = '';\r\n\t component.disabled = false;\r\n\t instance.triggerRedraw();\r\n\t }\r\n\t \r\n });\r\n\r\n\r\nasync function getData(reqUrl, authToken) {\r\n const response = await fetch(reqUrl, {\r\n method: \"GET\",\r\n headers: {\r\n \"Content-type\": \"application/json\",\r\n Accept: \"application/json\",\r\n Authorization: \"Bearer \" + authToken,\r\n },\r\n });\r\n const data = await response.json();\r\n return data;\r\n}",
"customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\nconst roles = UserDetails[\"role\"];\r\nconst taskUrl = window.location.pathname.split('/');\r\nconst taskId = taskUrl[2];\r\nconst authToken = localStorage.getItem(\"authToken\");\r\nconst bpmUrl = localStorage.getItem(\"bpmApiUrl\");\r\nvar reqUrl = bpmUrl + \"/task/\" + taskId + \"/variables\";\r\n\r\n getData(reqUrl, authToken).then((response) => {\r\n \r\n \t\t var applicationStatus = response.applicationStatus?response.applicationStatus.value:'';\r\n\t if(response.deraStatus && response.deraStatus.value === 'Returned'){\r\n \t\t component.disabled = true;\r\n\t component.description = 'Disabled since DERA resubmission in progress';\r\n\t instance.triggerRedraw();\r\n\r\n\t }\r\n\t else if (applicationStatus === 'Resubmit') {\r\n\r\n\t component.disabled = true;\r\n\t component.description = 'Disabled since CSSA resubmission in progress';\r\n\t instance.triggerRedraw();\r\n\t } else {\r\n\t component.description = '';\r\n\t component.disabled = false;\r\n\t instance.triggerRedraw();\r\n\t }\r\n\t \r\n });\r\n\r\n\r\nasync function getData(reqUrl, authToken) {\r\n const response = await fetch(reqUrl, {\r\n method: \"GET\",\r\n headers: {\r\n \"Content-type\": \"application/json\",\r\n Accept: \"application/json\",\r\n Authorization: \"Bearer \" + authToken,\r\n },\r\n });\r\n const data = await response.json();\r\n return data;\r\n}",
"logic": [],
"attributes": {},
"overlay": {
Expand Down Expand Up @@ -1246,7 +1246,7 @@
"showWordCount": false,
"allowMultipleMasks": false,
"addons": [],
"id": "e6wka93"
"id": "epaslsk"
}
],
"size": "md",
Expand Down Expand Up @@ -5069,7 +5069,7 @@
"attributes": {},
"components": [
{
"id": "ele95t000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"id": "ele95t00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"key": "spropertyOwnerAndOrOperator",
"tree": false,
"type": "panel",
Expand Down Expand Up @@ -14481,7 +14481,7 @@
"attributes": {},
"components": [
{
"id": "eks0gu00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"id": "eks0gu0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"key": "exposurePathwayQuestionnaireAffectedParcel",
"tree": false,
"type": "panel",
Expand Down Expand Up @@ -18424,7 +18424,7 @@
}
],
"collapsible": false,
"id": "eo5mwyp000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"id": "eo5mwyp00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"placeholder": "",
"prefix": "",
"customClass": "",
Expand Down Expand Up @@ -18688,92 +18688,98 @@
"breadcrumb": "default",
"components": [
{
"id": "eqptmbu",
"key": "simpletextarea",
"case": "",
"mask": false,
"rows": 3,
"type": "textarea",
"input": true,
"label": "Multi-line Text",
"editor": "",
"hidden": false,
"label": "Additional Information ",
"labelPosition": "top",
"placeholder": "",
"description": "",
"tooltip": "",
"prefix": "",
"suffix": "",
"unique": false,
"widget": {
"type": "input"
},
"dbIndex": false,
"overlay": {
"top": "",
"left": "",
"style": "",
"width": "",
"height": ""
},
"tooltip": "",
"wysiwyg": false,
"displayMask": "",
"editor": "",
"autoExpand": true,
"customClass": "",
"tabindex": "",
"autocomplete": "",
"hidden": false,
"hideLabel": false,
"showWordCount": false,
"showCharCount": false,
"autofocus": false,
"spellcheck": true,
"disabled": false,
"tableView": true,
"modalEdit": false,
"multiple": false,
"persistent": true,
"inputFormat": "plain",
"protected": false,
"dbIndex": false,
"case": "",
"truncateMultipleSpaces": false,
"encrypted": false,
"redrawOn": "",
"tabindex": "",
"clearOnHide": true,
"customDefaultValue": "",
"calculateValue": "",
"calculateServer": false,
"allowCalculateOverride": false,
"validateOn": "change",
"validate": {
"custom": "",
"unique": false,
"pattern": "",
"maxWords": "",
"minWords": "",
"multiple": false,
"required": false,
"maxLength": "",
"minLength": "",
"pattern": "",
"customMessage": "",
"custom": "",
"customPrivate": false,
"strictDateValidation": false
"json": "",
"minLength": "",
"maxLength": "",
"minWords": "",
"maxWords": "",
"strictDateValidation": false,
"multiple": false,
"unique": false
},
"autofocus": false,
"encrypted": false,
"fixedSize": true,
"hideLabel": false,
"inputMask": "",
"inputType": "text",
"modalEdit": false,
"protected": false,
"refreshOn": "",
"tableView": true,
"attributes": {},
"autoExpand": true,
"unique": false,
"errorLabel": "",
"persistent": true,
"errors": "",
"key": "simpletextarea",
"tags": [],
"properties": {},
"spellcheck": true,
"validateOn": "change",
"clearOnHide": true,
"conditional": {
"eq": "",
"json": "",
"show": null,
"when": null
"when": null,
"eq": "",
"json": ""
},
"customClass": "",
"description": "",
"inputFormat": "plain",
"placeholder": "",
"defaultValue": "",
"dataGridLabel": false,
"labelPosition": "top",
"showCharCount": false,
"showWordCount": false,
"calculateValue": "",
"calculateServer": false,
"customConditional": "",
"logic": [],
"attributes": {},
"overlay": {
"style": "",
"page": "",
"left": "",
"top": "",
"width": "",
"height": ""
},
"type": "textarea",
"rows": 3,
"wysiwyg": false,
"input": true,
"refreshOn": "",
"dataGridLabel": false,
"allowMultipleMasks": false,
"customDefaultValue": "",
"allowCalculateOverride": false,
"addons": [],
"displayMask": "",
"truncateMultipleSpaces": false
"mask": false,
"inputType": "text",
"inputMask": "",
"fixedSize": true,
"id": "en7kcaa",
"defaultValue": ""
}
],
"errorLabel": "",
Expand Down

0 comments on commit 674dcf4

Please sign in to comment.