26 lines
693 B
JavaScript
26 lines
693 B
JavaScript
export const currentViewActionTypes = {
|
|
GETCURRENTVIEW: "GETCURRENTVIEW",
|
|
SETCURRENTVIEW: "SETCURRENTVIEW",
|
|
SETCURRENTREFERENCE: "SETCURRENTREFERENCE",
|
|
};
|
|
|
|
export const getCurrentViewObj = () => (dispatch) => {
|
|
return dispatch({
|
|
type: currentViewActionTypes.GETCURRENTVIEW,
|
|
});
|
|
};
|
|
|
|
export const setCurrentView = (currentView) => (dispatch) => {
|
|
return dispatch({
|
|
type: currentViewActionTypes.SETCURRENTVIEW,
|
|
currentView: currentView,
|
|
});
|
|
};
|
|
|
|
export const setCurrentReference = (caseReference) => (dispatch) => {
|
|
return dispatch({
|
|
type: currentViewActionTypes.SETCURRENTREFERENCE,
|
|
caseReference: caseReference,
|
|
});
|
|
};
|