* 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
43 lines
881 B
TypeScript
43 lines
881 B
TypeScript
import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants";
|
|
|
|
/**
|
|
* action that sets preview mode
|
|
*
|
|
* @param payload
|
|
* @returns
|
|
*/
|
|
|
|
export const setPreviewModeAction = (payload: boolean) => ({
|
|
type: ReduxActionTypes.SET_PREVIEW_MODE,
|
|
payload,
|
|
});
|
|
|
|
/**
|
|
* action that update canvas layout
|
|
*
|
|
* @param width
|
|
* @param height
|
|
* @returns
|
|
*/
|
|
export const updateCanvasLayoutAction = (
|
|
width: number,
|
|
height: number | undefined,
|
|
) => {
|
|
return {
|
|
type: ReduxActionTypes.UPDATE_CANVAS_LAYOUT,
|
|
payload: {
|
|
height,
|
|
width,
|
|
},
|
|
};
|
|
};
|
|
|
|
/**
|
|
* This action when executed updates the status of saving entity to true
|
|
* This function was created to add a sync to the entity update and shortcut command being fired to execute any command.
|
|
*/
|
|
|
|
export const startingEntityUpdation = () => ({
|
|
type: ReduxActionTypes.ENTITY_UPDATE_STARTED,
|
|
});
|