21315: rows now deselect properly, fixed some spelling errors Arvados-DCO-1.1-Signed...
[arvados.git] / services / workbench2 / src / store / public-favorites-panel / public-favorites-action.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 { bindDataExplorerActions } from "store/data-explorer/data-explorer-action";
7
8 export const PUBLIC_FAVORITE_PANEL_ID = "publicFavoritePanel";
9 export const publicFavoritePanelActions = bindDataExplorerActions(PUBLIC_FAVORITE_PANEL_ID);
10
11 export const loadPublicFavoritePanel = () => (dispatch: Dispatch) => {
12     dispatch(publicFavoritePanelActions.RESET_EXPLORER_SEARCH_VALUE());
13     dispatch(publicFavoritePanelActions.REQUEST_ITEMS());
14 };