* 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
55 lines
1.1 KiB
TypeScript
55 lines
1.1 KiB
TypeScript
import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants";
|
|
|
|
export const initExplorerEntityNameEdit = (actionId: string) => {
|
|
return {
|
|
type: ReduxActionTypes.INIT_EXPLORER_ENTITY_NAME_EDIT,
|
|
payload: {
|
|
id: actionId,
|
|
},
|
|
};
|
|
};
|
|
|
|
/**
|
|
* action that make explorer pin/unpin
|
|
*
|
|
* @param shouldPin
|
|
* @returns
|
|
*/
|
|
export const setExplorerPinnedAction = (shouldPin: boolean) => {
|
|
return {
|
|
type: ReduxActionTypes.SET_EXPLORER_PINNED,
|
|
payload: {
|
|
shouldPin,
|
|
},
|
|
};
|
|
};
|
|
|
|
/**
|
|
* action that make explorer active/inactive
|
|
* NOTE: active state is used to slide the sidebar in unpinned state on hover.
|
|
*
|
|
* @param shouldPin
|
|
* @returns
|
|
*/
|
|
export const setExplorerActiveAction = (active: boolean) => {
|
|
return {
|
|
type: ReduxActionTypes.SET_EXPLORER_ACTIVE,
|
|
payload: active,
|
|
};
|
|
};
|
|
|
|
/**
|
|
* action that updates explorer width
|
|
*
|
|
* @param shouldPin
|
|
* @returns
|
|
*/
|
|
export const updateExplorerWidthAction = (width: number | undefined) => {
|
|
return {
|
|
type: ReduxActionTypes.UPDATE_EXPLORER_WIDTH,
|
|
payload: {
|
|
width,
|
|
},
|
|
};
|
|
};
|