upodated rep file upload

This commit is contained in:
2024-12-18 12:39:17 +00:00
parent 54728d9565
commit 97cfeb562a
13 changed files with 433 additions and 108 deletions
+22
View File
@@ -13,6 +13,7 @@ import {
getCase,
getPortalModuleDetails,
getBasicSearch,
getFilesFromBlob,
} from "../../actions";
import { getFormCollectionByID } from "../../components/utils";
import Breadcrumbs from "../../components/breadcrumbs";
@@ -31,6 +32,7 @@ import { getSearchDetails } from "../../components/utils";
import {
setCurrentReference,
setCurrentView,
setFilesForRepresentations,
setRepresentationCapacity,
} from "../../store/currentView/action";
import {
@@ -49,6 +51,7 @@ import {
setMySubmittedReps,
setMySubmittedRepsDetails,
} from "../../store/myRepresentations/action";
import { getRepsFilesBlobs } from "../../actions/azurestorage";
const RepresentationF = (props) => {
const { footerLinks, pages } = props;
@@ -201,6 +204,7 @@ const RepresentationF = (props) => {
setShowQuestionnaireSection={
setShowQuestionnaireSection
}
setCurrentReference={setCurrentReference}
showQuestionnaireSection={showQuestionnaireSection}
/>
</div>
@@ -298,7 +302,24 @@ export const getServerSideProps = wrapper.getServerSideProps(
"repDetails": result,
})
);
store.dispatch(
setRepresentationCapacity(result.representationCapacity)
);
// console.log(
// "===========================\n getting files",
// result.filesList
// );
const repsFileListObj = await getRepsFilesBlobs(
result.containerID,
result.caseRef,
result.repfile_name
);
store.dispatch(setAccountDetails(accountDetails));
store.dispatch(setFilesForRepresentations(repsFileListObj));
return {
props: {
@@ -340,6 +361,7 @@ export const getServerSideProps = wrapper.getServerSideProps(
: "",
})
);
store.dispatch(setAccountDetails(accountDetails));
// return {