* Implemented code splitting of some files for SAML integration * Implemented code splitting of some more files for SAML integration * updated redirect url component * fixed an import statement * fixed a unit test * updated restart banner tooltip logic * updated an import statement
39 lines
827 B
TypeScript
39 lines
827 B
TypeScript
import {
|
|
ReduxActionTypes,
|
|
ReduxActionErrorTypes,
|
|
} from "@appsmith/constants/ReduxActionConstants";
|
|
import { WidgetCardProps } from "widgets/BaseWidget";
|
|
|
|
export const fetchWidgetCards = () => {
|
|
return {
|
|
type: ReduxActionTypes.FETCH_WIDGET_CARDS,
|
|
};
|
|
};
|
|
|
|
export const errorFetchingWidgetCards = (error: any) => {
|
|
return {
|
|
type: ReduxActionErrorTypes.FETCH_WIDGET_CARDS_ERROR,
|
|
error,
|
|
};
|
|
};
|
|
|
|
export const successFetchingWidgetCards = (cards: {
|
|
[id: string]: WidgetCardProps[];
|
|
}) => {
|
|
return {
|
|
type: ReduxActionTypes.FETCH_WIDGET_CARDS_SUCCESS,
|
|
cards,
|
|
};
|
|
};
|
|
|
|
export const forceOpenWidgetPanel = (flag: boolean) => ({
|
|
type: ReduxActionTypes.SET_FORCE_WIDGET_PANEL_OPEN,
|
|
payload: flag,
|
|
});
|
|
|
|
export default {
|
|
fetchWidgetCards,
|
|
errorFetchingWidgetCards,
|
|
successFetchingWidgetCards,
|
|
};
|