X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/98237b19875f6437fa1e01845ad9c911d886cf04..fca732a280e0e078a026ef8326eb5ad65f9864c6:/src/views-components/context-menu/action-sets/favorite-action-set.ts diff --git a/src/views-components/context-menu/action-sets/favorite-action-set.ts b/src/views-components/context-menu/action-sets/favorite-action-set.ts index 58cf6cce..7942937f 100644 --- a/src/views-components/context-menu/action-sets/favorite-action-set.ts +++ b/src/views-components/context-menu/action-sets/favorite-action-set.ts @@ -3,16 +3,15 @@ // SPDX-License-Identifier: AGPL-3.0 import { ContextMenuActionSet } from "../context-menu-action-set"; -import { ToggleFavoriteAction } from "./favorite-action"; -import { toggleFavorite } from "../../../store/favorites/favorites-actions"; -import { dataExplorerActions } from "../../../store/data-explorer/data-explorer-action"; -import { FAVORITE_PANEL_ID } from "../../../views/favorite-panel/favorite-panel"; +import { ToggleFavoriteAction } from "../actions/favorite-action"; +import { toggleFavorite } from "~/store/favorites/favorites-actions"; +import { favoritePanelActions } from "~/store/favorite-panel/favorite-panel-action"; export const favoriteActionSet: ContextMenuActionSet = [[{ component: ToggleFavoriteAction, execute: (dispatch, resource) => { dispatch(toggleFavorite(resource)).then(() => { - dispatch(dataExplorerActions.REQUEST_ITEMS({ id : FAVORITE_PANEL_ID })); + dispatch(favoritePanelActions.REQUEST_ITEMS()); }); } }]];