2020-02-21 07:19:10 +00:00
|
|
|
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,
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
};
|