added in message queue for applications and reps
This commit is contained in:
@@ -8,6 +8,8 @@ export const currentViewActionTypes = {
|
||||
SETCURRENTLINKEDCASES: "SETCURRENTLINKEDCASES",
|
||||
SETCURRENTPAGE: "SETCURRENTPAGE",
|
||||
SETSHOWREPS: "SETSHOWREPS",
|
||||
SETREPRESENTATIONMESSAGESENT: "SETREPRESENTATIONMESSAGESENT",
|
||||
SETREPRESENTATIONRESET: "SETREPRESENTATIONRESET",
|
||||
};
|
||||
|
||||
export const getCurrentViewObj = () => (dispatch) => {
|
||||
@@ -60,6 +62,24 @@ export const setRepresentationSubmitConfirmation =
|
||||
});
|
||||
};
|
||||
|
||||
export const setRepresentationMessageSent =
|
||||
(representationMessageSent) => (dispatch) => {
|
||||
return dispatch({
|
||||
type: currentViewActionTypes.SETREPRESENTATIONMESSAGESENT,
|
||||
representationMessageSent: representationMessageSent,
|
||||
});
|
||||
};
|
||||
|
||||
export const setRepresentationReset = () => (dispatch) => {
|
||||
return dispatch({
|
||||
type: currentViewActionTypes.SETREPRESENTATIONRESET,
|
||||
representationCapacity: {},
|
||||
representationSubmit: "",
|
||||
representationSubmitConfirmation: {},
|
||||
representationMessageSent: false,
|
||||
});
|
||||
};
|
||||
|
||||
export const setCurrentLinkedCases = (linkedCaseReferences) => (dispatch) => {
|
||||
return dispatch({
|
||||
type: currentViewActionTypes.SETCURRENTLINKEDCASES,
|
||||
|
||||
@@ -6,6 +6,7 @@ const currentViewInitialState = {
|
||||
representationCapacity: {},
|
||||
representationSubmit: "",
|
||||
representationSubmitConfirmation: {},
|
||||
representationMessageSent: false,
|
||||
linkedCaseReferences: {},
|
||||
currentPage: 1,
|
||||
showReps: false,
|
||||
@@ -45,6 +46,20 @@ export default function reducer(state = currentViewInitialState, action) {
|
||||
representationSubmitConfirmation:
|
||||
action.representationSubmitConfirmation,
|
||||
};
|
||||
case currentViewActionTypes.SETREPRESENTATIONMESSAGESENT:
|
||||
return {
|
||||
...state,
|
||||
representationMessageSent: action.representationMessageSent,
|
||||
};
|
||||
|
||||
case currentViewActionTypes.SETREPRESENTATIONRESET:
|
||||
return {
|
||||
...state,
|
||||
representationCapacity: {},
|
||||
representationSubmit: "",
|
||||
representationSubmitConfirmation: {},
|
||||
representationMessageSent: false,
|
||||
};
|
||||
case currentViewActionTypes.SETCURRENTPAGE:
|
||||
return {
|
||||
...state,
|
||||
|
||||
Reference in New Issue
Block a user