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
+7
View File
@@ -12,6 +12,7 @@ export const currentViewActionTypes = {
SETREPRESENTATIONRESET: "SETREPRESENTATIONRESET",
SETSHOWLOGIN: "SETSHOWLOGIN",
SETLOCALE: "SETLOCALE",
SETFILELISTREPS: "SETFILELISTREPS",
};
export const getCurrentViewObj = () => (dispatch) => {
@@ -33,6 +34,12 @@ export const setCurrentReference = (caseReference) => (dispatch) => {
caseReference: caseReference,
});
};
export const setFilesForRepresentations = (fileList) => (dispatch) => {
return dispatch({
type: currentViewActionTypes.SETFILELISTREPS,
fileList: fileList,
});
};
export const setRepresentationCapacity =
(representationCapacity) => (dispatch) => {
+7
View File
@@ -12,6 +12,7 @@ const currentViewInitialState = {
showReps: false,
showLogin: false,
locale: "",
fileList: [],
};
export default function reducer(state = currentViewInitialState, action) {
@@ -37,6 +38,12 @@ export default function reducer(state = currentViewInitialState, action) {
...state,
representationCapacity: action.representationCapacity,
};
case currentViewActionTypes.SETFILELISTREPS:
return {
...state,
fileList: action.fileList,
};
case currentViewActionTypes.SETREPRESENTATIONSUBMIT:
return {
...state,