base flow for representations
This commit is contained in:
@@ -2,6 +2,9 @@ export const currentViewActionTypes = {
|
||||
GETCURRENTVIEW: "GETCURRENTVIEW",
|
||||
SETCURRENTVIEW: "SETCURRENTVIEW",
|
||||
SETCURRENTREFERENCE: "SETCURRENTREFERENCE",
|
||||
SETREPRESENTATIONCAPACITY: "SETREPRESENTATIONCAPACITY",
|
||||
SETREPRESENTATIONSUBMIT: "SETREPRESENTATIONSUBMIT",
|
||||
SETREPRESENTATIONSUBMITCONFIRMATION: "SETREPRESENTATIONSUBMITCONFIRMATION",
|
||||
};
|
||||
|
||||
export const getCurrentViewObj = () => (dispatch) => {
|
||||
@@ -23,3 +26,33 @@ export const setCurrentReference = (caseReference) => (dispatch) => {
|
||||
caseReference: caseReference,
|
||||
});
|
||||
};
|
||||
|
||||
export const setRepresentationCapacity =
|
||||
(representationCapacity) => (dispatch) => {
|
||||
return dispatch({
|
||||
type: currentViewActionTypes.SETREPRESENTATIONCAPACITY,
|
||||
representationCapacity: representationCapacity,
|
||||
});
|
||||
};
|
||||
|
||||
export const setRepresentationSubmit = (representationSubmit) => (dispatch) => {
|
||||
return dispatch({
|
||||
type: currentViewActionTypes.SETREPRESENTATIONSUBMIT,
|
||||
representationSubmit: representationSubmit,
|
||||
});
|
||||
};
|
||||
|
||||
export const setSubmitBack = (representationSubmit) => (dispatch) => {
|
||||
return dispatch({
|
||||
type: currentViewActionTypes.SETREPRESENTATIONSUBMIT,
|
||||
representationSubmit: representationSubmit,
|
||||
});
|
||||
};
|
||||
|
||||
export const setRepresentationSubmitConfirmation =
|
||||
(representationSubmitConfirmation) => (dispatch) => {
|
||||
return dispatch({
|
||||
type: currentViewActionTypes.SETREPRESENTATIONSUBMITCONFIRMATION,
|
||||
representationSubmitConfirmation: representationSubmitConfirmation,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user