X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ffac6f1051efb642db49c4c4a5d2f3f477ca6d34..2a7fd99c212c33a1ec9911f8529fa5afc59a7bb2:/src/store/favorite-panel/favorite-panel-action.ts diff --git a/src/store/favorite-panel/favorite-panel-action.ts b/src/store/favorite-panel/favorite-panel-action.ts index 48dd19ccde..85ede86704 100644 --- a/src/store/favorite-panel/favorite-panel-action.ts +++ b/src/store/favorite-panel/favorite-panel-action.ts @@ -2,7 +2,13 @@ // // SPDX-License-Identifier: AGPL-3.0 +import { Dispatch } from "redux"; import { bindDataExplorerActions } from "../data-explorer/data-explorer-action"; -import { FavoritePanelMiddlewareService } from "./favorite-panel-middleware-service"; -export const favoritePanelActions = bindDataExplorerActions(FavoritePanelMiddlewareService.getInstance()); +export const FAVORITE_PANEL_ID = "favoritePanel"; +export const favoritePanelActions = bindDataExplorerActions(FAVORITE_PANEL_ID); + +export const loadFavoritePanel = () => (dispatch: Dispatch) => { + dispatch(favoritePanelActions.RESET_EXPLORER_SEARCH_VALUE()); + dispatch(favoritePanelActions.REQUEST_ITEMS()); +}; \ No newline at end of file