files object display
This commit is contained in:
@@ -1064,7 +1064,7 @@ export function NumericField(props) {
|
|||||||
(showIfHasParentShowValue == parentField) != false &&
|
(showIfHasParentShowValue == parentField) != false &&
|
||||||
showIfHasParentShowValue;
|
showIfHasParentShowValue;
|
||||||
|
|
||||||
console.log("parentField:", parentField, showIfHasParentShowValue);
|
//console.log("parentField:", parentField, showIfHasParentShowValue);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -1133,7 +1133,7 @@ export function DecimalField(props) {
|
|||||||
(showIfHasParentShowValue == parentField) != false &&
|
(showIfHasParentShowValue == parentField) != false &&
|
||||||
showIfHasParentShowValue;
|
showIfHasParentShowValue;
|
||||||
|
|
||||||
console.log("parentField:", parentField, showIfHasParentShowValue);
|
//console.log("parentField:", parentField, showIfHasParentShowValue);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -140,8 +140,8 @@ let BuildCheckSection = (props) => {
|
|||||||
<dl className="govuk-summary-list govuk-!-margin-bottom-9 at-summary-list">
|
<dl className="govuk-summary-list govuk-!-margin-bottom-9 at-summary-list">
|
||||||
<div className="govuk-summary-list__row" key={"9999"}>
|
<div className="govuk-summary-list__row" key={"9999"}>
|
||||||
<dt>
|
<dt>
|
||||||
{props.props.appealType.fileList.files.length >
|
{_.has(props.props.appealType.fileList.files) &&
|
||||||
0
|
props.props.appealType.fileList.files.length > 0
|
||||||
? props.props.appealType.fileList.files.map(
|
? props.props.appealType.fileList.files.map(
|
||||||
(blob, i) => (
|
(blob, i) => (
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ ApiProxy.get(async (req, res) => {
|
|||||||
var checkHash = req.query.hash;
|
var checkHash = req.query.hash;
|
||||||
var checkquerypath = "/api/file/getbloblist?container=" + containerName;
|
var checkquerypath = "/api/file/getbloblist?container=" + containerName;
|
||||||
|
|
||||||
console.log(hashAPIPath(checkquerypath), checkHash);
|
// console.log(hashAPIPath(checkquerypath), checkHash);
|
||||||
console.log(hashAPIPath(checkquerypath) == "&hash=" + checkHash);
|
// console.log(hashAPIPath(checkquerypath) == "&hash=" + checkHash);
|
||||||
|
|
||||||
if (hashAPIPath(checkquerypath) == "&hash=" + checkHash) {
|
if (hashAPIPath(checkquerypath) == "&hash=" + checkHash) {
|
||||||
await getBlobs(containerName).then((data) => {
|
await getBlobs(containerName).then((data) => {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import {
|
|||||||
getAppealsTypes,
|
getAppealsTypes,
|
||||||
getMandatoryFields,
|
getMandatoryFields,
|
||||||
getPickLists,
|
getPickLists,
|
||||||
getFilesFromBlobs,
|
getFilesFromBlob,
|
||||||
} from "../../actions";
|
} from "../../actions";
|
||||||
import { getProviderConfig } from "../../actions/govgateway";
|
import { getProviderConfig } from "../../actions/govgateway";
|
||||||
import Breadcrumbs from "../../components/breadcrumbs";
|
import Breadcrumbs from "../../components/breadcrumbs";
|
||||||
@@ -222,13 +222,13 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
|||||||
appealTypeData,
|
appealTypeData,
|
||||||
mandatoryFieldsData,
|
mandatoryFieldsData,
|
||||||
pickListData,
|
pickListData,
|
||||||
blobList,
|
//blobList,
|
||||||
] = await Promise.all([
|
] = await Promise.all([
|
||||||
await getCase(query.id),
|
await getCase(query.id),
|
||||||
await getAppealsTypes(),
|
await getAppealsTypes(),
|
||||||
await getMandatoryFields(query.appealtypes),
|
await getMandatoryFields(query.appealtypes),
|
||||||
await getPickLists(query.appealtypes),
|
await getPickLists(query.appealtypes),
|
||||||
await getFilesFromBlob(query.casereference),
|
//await getFilesFromBlob(query.casereference),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
console.log("anything here", loggedInUser, query.id, caseReferenceData);
|
console.log("anything here", loggedInUser, query.id, caseReferenceData);
|
||||||
@@ -255,7 +255,7 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
|||||||
store.dispatch(setCaseReference(caseReference));
|
store.dispatch(setCaseReference(caseReference));
|
||||||
store.dispatch(setForm(xmlStr, mandatoryFieldsData, pickListData));
|
store.dispatch(setForm(xmlStr, mandatoryFieldsData, pickListData));
|
||||||
store.dispatch(setAppealType(appealTypeData));
|
store.dispatch(setAppealType(appealTypeData));
|
||||||
store.dispatch(setFilesForAppeal(blobList));
|
//store.dispatch(setFilesForAppeal(blobList));
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user