PromucFlow_constructor/app/client/src/actions/applicationActions.ts

30 lines
601 B
TypeScript
Raw Normal View History

import { ReduxActionTypes } from "constants/ReduxActionConstants";
export const setDefaultApplicationPageSuccess = (
pageId: string,
applicationId: string,
) => {
return {
type: ReduxActionTypes.SET_DEFAULT_APPLICATION_PAGE_SUCCESS,
payload: {
pageId,
applicationId,
},
};
};
2020-03-06 04:59:24 +00:00
export const fetchApplications = () => {
return {
type: ReduxActionTypes.FETCH_APPLICATION_LIST_INIT,
};
};
export const fetchApplication = (applicationId: string) => {
return {
type: ReduxActionTypes.FETCH_APPLICATION_INIT,
payload: {
applicationId,
},
};
};