added in message queue for applications and reps

This commit is contained in:
2023-01-19 17:25:16 +00:00
parent 0c1de7d26b
commit d3bba6c620
16 changed files with 405 additions and 77 deletions
+20
View File
@@ -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,