questionnaire defect 21, rep defect 30,11
This commit is contained in:
@@ -27,6 +27,8 @@ const RepCompleteSubmit = (props) => {
|
|||||||
setRepresentationMessageSent,
|
setRepresentationMessageSent,
|
||||||
setRepresentationReset,
|
setRepresentationReset,
|
||||||
setShowQuestionnaireSection,
|
setShowQuestionnaireSection,
|
||||||
|
showQuestionnaireSection,
|
||||||
|
questionnaireCount,
|
||||||
} = props;
|
} = props;
|
||||||
const { acceptedFiles, getRootProps, getInputProps } = useDropzone();
|
const { acceptedFiles, getRootProps, getInputProps } = useDropzone();
|
||||||
const files = acceptedFiles.map((file) => (
|
const files = acceptedFiles.map((file) => (
|
||||||
@@ -411,10 +413,22 @@ const RepCompleteSubmit = (props) => {
|
|||||||
className="govuk-link"
|
className="govuk-link"
|
||||||
href="#"
|
href="#"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setSubmitBack();
|
repFormData.representationType ==
|
||||||
|
"Questionnaire"
|
||||||
|
? (setShowQuestionnaireSection(
|
||||||
|
questionnaireCount ==
|
||||||
|
7
|
||||||
|
? 6
|
||||||
|
: 8
|
||||||
|
),
|
||||||
|
setRepresentationSubmit(
|
||||||
|
false
|
||||||
|
))
|
||||||
|
: setSubmitBack();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{t("common:change-link-label")}
|
{t("common:change-link-label")}
|
||||||
|
|
||||||
<span className="govuk-visually-hidden">
|
<span className="govuk-visually-hidden">
|
||||||
{" "}
|
{" "}
|
||||||
{/* {FieldsTranslations(
|
{/* {FieldsTranslations(
|
||||||
|
|||||||
@@ -1132,8 +1132,11 @@ export const RenderFileUpload = (field) => {
|
|||||||
"/" +
|
"/" +
|
||||||
(typeof field.filenamePrefix != "object"
|
(typeof field.filenamePrefix != "object"
|
||||||
? field.filenamePrefix
|
? field.filenamePrefix
|
||||||
: field.filenamePrefix.representationForm
|
: encodeURIComponent(
|
||||||
.values.repfile_name)
|
field.filenamePrefix
|
||||||
|
.representationForm.values
|
||||||
|
.repfile_name
|
||||||
|
))
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
data = data.value || {};
|
data = data.value || {};
|
||||||
field.input.value == null;
|
field.input.value == null;
|
||||||
@@ -1265,7 +1268,12 @@ export const RenderFileUpload = (field) => {
|
|||||||
"/api/file/downloadblob?container=" +
|
"/api/file/downloadblob?container=" +
|
||||||
field.containerID +
|
field.containerID +
|
||||||
"&casefolderID=" +
|
"&casefolderID=" +
|
||||||
field.ticketnumber +
|
encodeURIComponent(
|
||||||
|
field.ticketnumber +
|
||||||
|
"/" +
|
||||||
|
field.filenamePrefix.representationForm
|
||||||
|
.values.repfile_name
|
||||||
|
) +
|
||||||
"&blobname=" +
|
"&blobname=" +
|
||||||
blob.name +
|
blob.name +
|
||||||
blob.hashedfilepath
|
blob.hashedfilepath
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ let RepLPA = (props) => {
|
|||||||
case 846040017:
|
case 846040017:
|
||||||
return (
|
return (
|
||||||
<S78_Questionnaire
|
<S78_Questionnaire
|
||||||
|
questionnaireType={"s78"}
|
||||||
props={props}
|
props={props}
|
||||||
containerID={
|
containerID={
|
||||||
props.props.props.accountDetails.containerID
|
props.props.props.accountDetails.containerID
|
||||||
@@ -85,6 +86,7 @@ let RepLPA = (props) => {
|
|||||||
case 846040007:
|
case 846040007:
|
||||||
return (
|
return (
|
||||||
<Enforcement_Questionnaire
|
<Enforcement_Questionnaire
|
||||||
|
questionnaireType={"enf"}
|
||||||
props={props}
|
props={props}
|
||||||
containerID={
|
containerID={
|
||||||
props.props.props.accountDetails.containerID
|
props.props.props.accountDetails.containerID
|
||||||
|
|||||||
+1
-1
@@ -1178,7 +1178,7 @@ let Enforcement_Questionnaire = (props) => {
|
|||||||
name={"representationDocuments"}
|
name={"representationDocuments"}
|
||||||
id={"representationDocuments"}
|
id={"representationDocuments"}
|
||||||
label={t("myrepresentations:add-files-label")}
|
label={t("myrepresentations:add-files-label")}
|
||||||
ticketnumber={props.props.caseReference}
|
ticketnumber={props.props.props.caseReference}
|
||||||
hint={"sdsd"}
|
hint={"sdsd"}
|
||||||
fileList={
|
fileList={
|
||||||
props.currentView.caseReference.hasOwnProperty(
|
props.currentView.caseReference.hasOwnProperty(
|
||||||
|
|||||||
+1
-1
@@ -991,7 +991,7 @@ let S78_Questionnaire = (props) => {
|
|||||||
name={"representationDocuments"}
|
name={"representationDocuments"}
|
||||||
id={"representationDocuments"}
|
id={"representationDocuments"}
|
||||||
label={t("myrepresentations:add-files-label")}
|
label={t("myrepresentations:add-files-label")}
|
||||||
ticketnumber={props.props.caseReference}
|
ticketnumber={props.props.props.caseReference}
|
||||||
hint={"sdsd"}
|
hint={"sdsd"}
|
||||||
fileList={
|
fileList={
|
||||||
props.currentView.caseReference.hasOwnProperty(
|
props.currentView.caseReference.hasOwnProperty(
|
||||||
|
|||||||
Reference in New Issue
Block a user