Merge from git
This commit is contained in:
@@ -5,6 +5,7 @@ export const currentViewActionTypes = {
|
||||
SETREPRESENTATIONCAPACITY: "SETREPRESENTATIONCAPACITY",
|
||||
SETREPRESENTATIONSUBMIT: "SETREPRESENTATIONSUBMIT",
|
||||
SETREPRESENTATIONSUBMITCONFIRMATION: "SETREPRESENTATIONSUBMITCONFIRMATION",
|
||||
SETCURRENTLINKEDCASES: "SETCURRENTLINKEDCASES",
|
||||
};
|
||||
|
||||
export const getCurrentViewObj = () => (dispatch) => {
|
||||
@@ -56,3 +57,10 @@ export const setRepresentationSubmitConfirmation =
|
||||
representationSubmitConfirmation: representationSubmitConfirmation,
|
||||
});
|
||||
};
|
||||
|
||||
export const setCurrentLinkedCases = (linkedCaseReferences) => (dispatch) => {
|
||||
return dispatch({
|
||||
type: currentViewActionTypes.SETCURRENTLINKEDCASES,
|
||||
linkedCaseReferences: linkedCaseReferences,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -6,6 +6,7 @@ const currentViewInitialState = {
|
||||
representationCapacity: {},
|
||||
representationSubmit: null,
|
||||
representationSubmitConfirmation: {},
|
||||
linkedCaseReferences: {},
|
||||
};
|
||||
|
||||
export default function reducer(state = currentViewInitialState, action) {
|
||||
@@ -20,6 +21,12 @@ export default function reducer(state = currentViewInitialState, action) {
|
||||
...state,
|
||||
caseReference: action.caseReference,
|
||||
};
|
||||
|
||||
case currentViewActionTypes.SETCURRENTLINKEDCASES:
|
||||
return {
|
||||
...state,
|
||||
linkedCaseReferences: action.linkedCaseReferences,
|
||||
};
|
||||
case currentViewActionTypes.SETREPRESENTATIONCAPACITY:
|
||||
return {
|
||||
...state,
|
||||
|
||||
Reference in New Issue
Block a user