X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0428dcd2b44b944eb0645aeac210924e563db898..9c5068adca5044058518667e981000c3913673b8:/services/workbench2/src/views/search-results-panel/search-results-panel.tsx diff --git a/services/workbench2/src/views/search-results-panel/search-results-panel.tsx b/services/workbench2/src/views/search-results-panel/search-results-panel.tsx index 60d70204a6..0b69ff246a 100644 --- a/services/workbench2/src/views/search-results-panel/search-results-panel.tsx +++ b/services/workbench2/src/views/search-results-panel/search-results-panel.tsx @@ -14,8 +14,6 @@ import { User } from "models/user"; import { Config } from 'common/config'; import { Session } from "models/session"; import { toggleOne, deselectAllOthers } from "store/multiselect/multiselect-actions"; -import { progressIndicatorActions } from 'store/progress-indicator/progress-indicator-actions'; -import { SEARCH_RESULTS_PANEL_ID } from 'store/search-results-panel/search-results-panel-actions'; export interface SearchResultsPanelDataProps { data: SearchBarAdvancedFormData; @@ -23,8 +21,6 @@ export interface SearchResultsPanelDataProps { sessions: Session[]; remoteHostsConfig: { [key: string]: Config }; localCluster: string; - numberOfItems: number; - isSearching: boolean; } export interface SearchResultsPanelActionProps { @@ -32,22 +28,16 @@ export interface SearchResultsPanelActionProps { onContextMenu: (event: React.MouseEvent, item: string) => void; onDialogOpen: (ownerUuid: string) => void; onItemDoubleClick: (item: string) => void; - startSpinner: () => void; - stopSpinner: () => void; } export type SearchResultsPanelProps = SearchResultsPanelDataProps & SearchResultsPanelActionProps; const mapStateToProps = (rootState: RootState) => { - const { dataExplorer, searchBar } = rootState; - const numberOfItems = dataExplorer[SEARCH_RESULTS_PANEL_ID].items.length; return { user: rootState.auth.user, sessions: rootState.auth.sessions, remoteHostsConfig: rootState.auth.remoteHostsConfig, localCluster: rootState.auth.localCluster, - numberOfItems, - isSearching: searchBar.isSearching, }; }; @@ -63,13 +53,7 @@ const mapDispatchToProps = (dispatch: Dispatch): SearchResultsPanelActionProps = }, onItemDoubleClick: uuid => { dispatch(navigateTo(uuid)); - }, - startSpinner: () => { - dispatch(progressIndicatorActions.START_WORKING(SEARCH_RESULTS_PANEL_ID)); - }, - stopSpinner: () => { - dispatch(progressIndicatorActions.STOP_WORKING(SEARCH_RESULTS_PANEL_ID)); - }, + } }); export const SearchResultsPanel = connect(mapStateToProps, mapDispatchToProps)(SearchResultsPanelView);