Skip to content

Commit 4a8429f

Browse files
committed
fix height of reconnect modal
1 parent 007ada8 commit 4a8429f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ import { FEATURE_FLAG } from "ee/entities/FeatureFlag";
9494
import DatasourceTabs from "../DatasourceInfo/DatasorceTabs";
9595
import { getCurrentApplicationIdForCreateNewApp } from "ee/selectors/applicationSelectors";
9696
import { convertToPageIdSelector } from "selectors/pageListSelectors";
97+
import { getIsAiAgentFlowEnabled } from "ee/selectors/aiAgentSelectors";
9798

9899
const ViewModeContainer = styled.div`
99100
display: flex;
@@ -188,6 +189,7 @@ interface SaasEditorWrappperProps {
188189
datasourceId: string;
189190
pageId: string;
190191
pluginPackageName: string;
192+
isAiAgentFlowEnabled?: boolean;
191193
}
192194
interface RouteProps {
193195
datasourceId: string;
@@ -643,7 +645,9 @@ class DatasourceSaaSEditor extends JSONtoForm<Props, State> {
643645
showingTabsOnViewMode && "saas-form-resizer-content-show-tabs"
644646
}`}
645647
>
646-
<DSEditorWrapper>
648+
<DSEditorWrapper
649+
isAiAgentFlowEnabled={this.props.isAiAgentFlowEnabled}
650+
>
647651
<DSDataFilter
648652
filterId={this.state.filterParams.id}
649653
isInsideReconnectModal={!!isInsideReconnectModal}
@@ -852,6 +856,7 @@ const mapStateToProps = (state: AppState, props: any) => {
852856
// should plugin be able to preview data
853857
const isPluginAllowedToPreviewData =
854858
!!plugin && isEnabledForPreviewData(datasource as Datasource, plugin);
859+
const isAiAgentFlowEnabled = getIsAiAgentFlowEnabled(state);
855860

856861
return {
857862
datasource,
@@ -890,6 +895,7 @@ const mapStateToProps = (state: AppState, props: any) => {
890895
isPluginAuthFailed,
891896
featureFlags: selectFeatureFlags(state),
892897
isPluginAllowedToPreviewData,
898+
isAiAgentFlowEnabled,
893899
};
894900
};
895901

0 commit comments

Comments
 (0)