Skip to content

Commit

Permalink
Revert "fix: Minor changes in Datasource and API (#38371)"
Browse files Browse the repository at this point in the history
This reverts commit b9504b6.
  • Loading branch information
dvj1988 committed Dec 26, 2024
1 parent 6905aa9 commit 6c8351f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,7 @@ const CommonEditorForm = (props: Props) => {
const paramsCount = getParamsCount(actionParams, datasourceHeaders);

return (
<Styled.Tabs
data-testid={props.dataTestId}
onValueChange={setCurrentTab}
value={currentTab}
>
<Styled.Tabs onValueChange={setCurrentTab} value={currentTab}>
<Styled.FormHeader>
<InfoFields
actionName={action.name}
Expand Down
1 change: 0 additions & 1 deletion app/client/src/ce/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2307,7 +2307,6 @@ export const DATA_PANE_TITLE = () => "Datasources in your workspace";
export const DATASOURCE_LIST_BLANK_DESCRIPTION = () =>
"Connect a datasource to write your first query";
export const DATASOURCE_BLANK_STATE_MESSAGE = () => "No datasources to display";
export const DATASOURCE_BLANK_STATE_CTA = () => "Bring your data";

// Create New Apps Intermediary step
export const CREATE_NEW_APPS_STEP_TITLE = () => "How would you like to start?";
Expand Down
5 changes: 2 additions & 3 deletions app/client/src/pages/Editor/IDE/LeftPane/DataSidePane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ import { useLocation } from "react-router";
import {
createMessage,
DATA_PANE_TITLE,
DATASOURCE_BLANK_STATE_CTA,
DATASOURCE_LIST_BLANK_DESCRIPTION,
} from "ee/constants/messages";
import PaneHeader from "./PaneHeader";
import { useEditorType } from "ee/hooks";
import { INTEGRATION_TABS } from "constants/routes";
import { INTEGRATION_TABS } from "../../../../constants/routes";
import type { AppState } from "ee/reducers";
import { getCurrentAppWorkspace } from "ee/selectors/selectedWorkspaceSelectors";
import { useFeatureFlag } from "utils/hooks/useFeatureFlag";
Expand Down Expand Up @@ -100,7 +99,7 @@ const DataSidePane = (props: DataSidePaneProps) => {
() => ({
className: "t--add-datasource-button-blank-screen",
testId: "t--add-datasource-button-blank-screen",
text: createMessage(DATASOURCE_BLANK_STATE_CTA),
text: createMessage(DATA_PANE_TITLE),
onClick: canCreateDatasource ? addButtonClickHandler : undefined,
}),
[addButtonClickHandler, canCreateDatasource],
Expand Down

0 comments on commit 6c8351f

Please sign in to comment.