diff --git a/ui/src/app/workflows/components/workflows-list/workflows-list.tsx b/ui/src/app/workflows/components/workflows-list/workflows-list.tsx index 1cde57b34ccf..e97ca59d6033 100644 --- a/ui/src/app/workflows/components/workflows-list/workflows-list.tsx +++ b/ui/src/app/workflows/components/workflows-list/workflows-list.tsx @@ -1,4 +1,4 @@ -import {Autocomplete, Page, SlidingPanel} from 'argo-ui'; +import {Page, SlidingPanel} from 'argo-ui'; import * as React from 'react'; import {RouteComponentProps} from 'react-router-dom'; import * as models from '../../../../models'; @@ -13,7 +13,6 @@ import {ExampleManifests} from '../../../shared/components/example-manifests'; import {FirstTimeUserPanel} from '../../../shared/components/first-time-user-panel'; import {Loading} from '../../../shared/components/loading'; import {PaginationPanel} from '../../../shared/components/pagination-panel'; -import {Query} from '../../../shared/components/query'; import {ZeroState} from '../../../shared/components/zero-state'; import {Consumer} from '../../../shared/context'; import {ListWatch, sortByYouth} from '../../../shared/list-watch'; @@ -194,7 +193,6 @@ export class WorkflowsList extends BasePage, State> { />
- {this.renderQuery(ctx)}
, State> { } this.setState({batchActionDisabled: nowDisabled, selectedWorkflows: new Map(newSelectedWorkflows)}); } - - private renderQuery(ctx: any) { - return ( - - {q => ( -
- - {q.get('search') && ( - { - ctx.navigation.goto('.', {search: null}, {replace: true}); - }} - /> - )} - ( - { - e.target.select(); - if (inputProps.onFocus) { - inputProps.onFocus(e); - } - }} - className='argo-field' - /> - )} - renderItem={item => ( - - {item.label} - - )} - onSelect={val => { - ctx.navigation.goto(uiUrl(`workflows/${val}`)); - }} - onChange={e => { - ctx.navigation.goto('.', {search: e.target.value}, {replace: true}); - }} - value={q.get('search') || ''} - items={(this.state.workflows || []).map(wf => wf.metadata.namespace + '/' + wf.metadata.name)} - /> -
- )} -
- ); - } }