upodated rep file upload
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user