* feat: added datasource icon on left of entity name, revamped name editor * fix: updated the hardcoded message strings to use message.ts * fix: types of variables
20 lines
588 B
TypeScript
20 lines
588 B
TypeScript
import { AppState } from "reducers";
|
|
|
|
export const getSelectedWidget = (state: AppState) =>
|
|
state.ui.widgetDragResize.lastSelectedWidget;
|
|
|
|
export const getSelectedWidgets = (state: AppState) =>
|
|
state.ui.widgetDragResize.selectedWidgets;
|
|
|
|
/**
|
|
* Selector to use id and provide the status of saving an API.
|
|
*/
|
|
export const getIsSavingForApiName = (state: AppState, id: string) =>
|
|
state.ui.apiName.isSaving[id];
|
|
|
|
/**
|
|
* Selector to use id and provide the status of error in an API.
|
|
*/
|
|
export const getErrorForApiName = (state: AppState, id: string) =>
|
|
state.ui.apiName.errors[id];
|