Remove references of plugin name
This commit is contained in:
parent
744ce9f5af
commit
2cf1b8d135
|
|
@ -7,9 +7,7 @@ export const HTTP_METHOD_OPTIONS = HTTP_METHODS.map(method => ({
|
||||||
value: method,
|
value: method,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
export const PLUGIN_NAME = "RestTemplatePluginExecutor";
|
|
||||||
export const REST_PLUGIN_PACKAGE_NAME = "restapi-plugin";
|
export const REST_PLUGIN_PACKAGE_NAME = "restapi-plugin";
|
||||||
export const PLUGIN_NAME_RAPIDAPI = "Rapid API Plugin";
|
|
||||||
|
|
||||||
export const DEFAULT_API_ACTION: Partial<RestAction> = {
|
export const DEFAULT_API_ACTION: Partial<RestAction> = {
|
||||||
actionConfiguration: {
|
actionConfiguration: {
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,6 @@ import {
|
||||||
initApiPane,
|
initApiPane,
|
||||||
} from "actions/apiPaneActions";
|
} from "actions/apiPaneActions";
|
||||||
import { RestAction } from "api/ActionAPI";
|
import { RestAction } from "api/ActionAPI";
|
||||||
import { getPluginIdOfName } from "selectors/entitiesSelector";
|
|
||||||
import { PLUGIN_NAME } from "constants/ApiEditorConstants";
|
|
||||||
import EditorSidebar from "pages/Editor/EditorSidebar";
|
import EditorSidebar from "pages/Editor/EditorSidebar";
|
||||||
import { getNextEntityName } from "utils/AppsmithUtils";
|
import { getNextEntityName } from "utils/AppsmithUtils";
|
||||||
import AnalyticsUtil from "utils/AnalyticsUtil";
|
import AnalyticsUtil from "utils/AnalyticsUtil";
|
||||||
|
|
@ -65,7 +63,6 @@ const ActionName = styled.span`
|
||||||
interface ReduxStateProps {
|
interface ReduxStateProps {
|
||||||
actions: ActionDataState;
|
actions: ActionDataState;
|
||||||
apiPane: ApiPaneReduxState;
|
apiPane: ApiPaneReduxState;
|
||||||
pluginId: string | undefined;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ReduxDispatchProps {
|
interface ReduxDispatchProps {
|
||||||
|
|
@ -190,10 +187,8 @@ class ApiSidebar extends React.Component<Props> {
|
||||||
params: { apiId },
|
params: { apiId },
|
||||||
},
|
},
|
||||||
actions,
|
actions,
|
||||||
pluginId,
|
|
||||||
} = this.props;
|
} = this.props;
|
||||||
if (!pluginId) return null;
|
const data = actions.map(a => a.config).filter(a => a.pluginType === "API");
|
||||||
const data = actions.map(a => a.config);
|
|
||||||
return (
|
return (
|
||||||
<EditorSidebar
|
<EditorSidebar
|
||||||
isLoading={isFetching}
|
isLoading={isFetching}
|
||||||
|
|
@ -213,7 +208,6 @@ class ApiSidebar extends React.Component<Props> {
|
||||||
}
|
}
|
||||||
|
|
||||||
const mapStateToProps = (state: AppState): ReduxStateProps => ({
|
const mapStateToProps = (state: AppState): ReduxStateProps => ({
|
||||||
pluginId: getPluginIdOfName(state, PLUGIN_NAME),
|
|
||||||
actions: state.entities.actions,
|
actions: state.entities.actions,
|
||||||
apiPane: state.ui.apiPane,
|
apiPane: state.ui.apiPane,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user