@@ -94,6 +94,7 @@ import { FEATURE_FLAG } from "ee/entities/FeatureFlag";
94
94
import DatasourceTabs from "../DatasourceInfo/DatasorceTabs" ;
95
95
import { getCurrentApplicationIdForCreateNewApp } from "ee/selectors/applicationSelectors" ;
96
96
import { convertToPageIdSelector } from "selectors/pageListSelectors" ;
97
+ import { getIsAiAgentFlowEnabled } from "ee/selectors/aiAgentSelectors" ;
97
98
98
99
const ViewModeContainer = styled . div `
99
100
display: flex;
@@ -188,6 +189,7 @@ interface SaasEditorWrappperProps {
188
189
datasourceId : string ;
189
190
pageId : string ;
190
191
pluginPackageName : string ;
192
+ isAiAgentFlowEnabled ?: boolean ;
191
193
}
192
194
interface RouteProps {
193
195
datasourceId : string ;
@@ -643,7 +645,9 @@ class DatasourceSaaSEditor extends JSONtoForm<Props, State> {
643
645
showingTabsOnViewMode && "saas-form-resizer-content-show-tabs"
644
646
} `}
645
647
>
646
- < DSEditorWrapper >
648
+ < DSEditorWrapper
649
+ isAiAgentFlowEnabled = { this . props . isAiAgentFlowEnabled }
650
+ >
647
651
< DSDataFilter
648
652
filterId = { this . state . filterParams . id }
649
653
isInsideReconnectModal = { ! ! isInsideReconnectModal }
@@ -852,6 +856,7 @@ const mapStateToProps = (state: AppState, props: any) => {
852
856
// should plugin be able to preview data
853
857
const isPluginAllowedToPreviewData =
854
858
! ! plugin && isEnabledForPreviewData ( datasource as Datasource , plugin ) ;
859
+ const isAiAgentFlowEnabled = getIsAiAgentFlowEnabled ( state ) ;
855
860
856
861
return {
857
862
datasource,
@@ -890,6 +895,7 @@ const mapStateToProps = (state: AppState, props: any) => {
890
895
isPluginAuthFailed,
891
896
featureFlags : selectFeatureFlags ( state ) ,
892
897
isPluginAllowedToPreviewData,
898
+ isAiAgentFlowEnabled,
893
899
} ;
894
900
} ;
895
901
0 commit comments