isAdmin prop
[arvados.git] / src / store / search-results-panel / search-results-panel-actions.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { Dispatch } from 'redux';
6 import { RootState } from '~/store/store';
7 import { ServiceRepository } from '~/services/services';
8 import { bindDataExplorerActions } from '~/store/data-explorer/data-explorer-action';
9 import { setBreadcrumbs } from '~/store/breadcrumbs/breadcrumbs-actions';
10
11 export const SEARCH_RESULTS_PANEL_ID = "searchResultsPanel";
12 export const searchResultsPanelActions = bindDataExplorerActions(SEARCH_RESULTS_PANEL_ID);
13
14 export const loadSearchResultsPanel = () =>
15     (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
16         dispatch(setBreadcrumbs([{ label: 'Search results' }]));
17         dispatch(searchResultsPanelActions.REQUEST_ITEMS());
18     };