Merge branch '21128-toolbar-context-menu'
[arvados-workbench2.git] / src / store / favorite-panel / favorite-panel-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 "../data-explorer/data-explorer-action";
7
8 export const FAVORITE_PANEL_ID = "favoritePanel";
9 export const favoritePanelActions = bindDataExplorerActions(FAVORITE_PANEL_ID);
10
11 export const loadFavoritePanel = () => (dispatch: Dispatch) => {
12     dispatch(favoritePanelActions.RESET_EXPLORER_SEARCH_VALUE());
13     dispatch(favoritePanelActions.REQUEST_ITEMS());
14 };