PromucFlow_constructor/app/client/src/actions/explorerActions.ts
Ankita Kinger c1e48f7486
feat: Refactor code for SAML integration (#12700)
* 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
2022-04-12 16:20:01 +05:30

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,
},
};
};