@@ -3,7 +3,7 @@ import { debounce } from 'lodash-es';
33import { useHistory } from 'react-router' ;
44import { ResizeDirection } from 're-resizable' ;
55import { Rnd } from 'react-rnd' ;
6- import { CatalogItem } from '@openshift-console/dynamic-plugin-sdk' ;
6+ import { CatalogItem , useFlag } from '@openshift-console/dynamic-plugin-sdk' ;
77import QuickSearchBar from './QuickSearchBar' ;
88import QuickSearchContent from './QuickSearchContent' ;
99import { DetailsRendererFunction } from './QuickSearchDetails' ;
@@ -21,6 +21,7 @@ import { TaskSearchCallback } from '../pipeline-builder/types';
2121import useTasksProvider from '../catalog/providers/useTasksProvider' ;
2222
2323import './QuickSearchModalBody.scss' ;
24+ import { FLAGS } from '../../types' ;
2425
2526interface QuickSearchModalBodyProps {
2627 allCatalogItemsLoaded : boolean ;
@@ -56,6 +57,7 @@ const QuickSearchModalBody: React.FC<QuickSearchModalBodyProps> = ({
5657 const MIN_HEIGHT = 240 ;
5758 const MIN_WIDTH = 225 ;
5859 const history = useHistory ( ) ;
60+ const isDevConsoleProxyAvailable = useFlag ( FLAGS . DEVCONSOLE_PROXY ) ;
5961 const [ catalogItems , setCatalogItems ] = React . useState < CatalogItem [ ] > ( null ) ;
6062 const [ catalogTypes , setCatalogTypes ] = React . useState < CatalogType [ ] > ( [ ] ) ;
6163 const [ isRndActive , setIsRndActive ] = React . useState ( false ) ;
@@ -235,7 +237,12 @@ const QuickSearchModalBody: React.FC<QuickSearchModalBodyProps> = ({
235237 if ( activeViewAllLink ) {
236238 history . push ( activeViewAllLink . to ) ;
237239 } else if ( selectedItem ) {
238- handleCta ( e , selectedItem , closeModal , history ) ;
240+ handleCta ( e , selectedItem , closeModal , history , {
241+ callback,
242+ setFailedTasks,
243+ namespace,
244+ isDevConsoleProxyAvailable,
245+ } ) ;
239246 }
240247 } ,
241248 [ closeModal , selectedItem , viewAll ] ,
0 commit comments