X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/378c6a3a18cd9849bf4233e130a9ffdf250de35e..5c53f8b627cc92bb9d642159c4d7e3ad1ddf494d:/src/views-components/context-menu/action-sets/collection-action-set.ts diff --git a/src/views-components/context-menu/action-sets/collection-action-set.ts b/src/views-components/context-menu/action-sets/collection-action-set.ts index 0822b781..513cb5fc 100644 --- a/src/views-components/context-menu/action-sets/collection-action-set.ts +++ b/src/views-components/context-menu/action-sets/collection-action-set.ts @@ -5,16 +5,16 @@ import { ContextMenuActionSet } from "../context-menu-action-set"; import { ToggleFavoriteAction } from "../actions/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 { RenameIcon, ShareIcon, MoveToIcon, CopyIcon, DetailsIcon, ProvenanceGraphIcon, AdvancedIcon, RemoveIcon } from "../../../components/icon/icon"; +import { openUpdater } from "../../../store/collections/updater/collection-updater-action"; +import { favoritePanelActions } from "../../../store/favorite-panel/favorite-panel-action"; export const collectionActionSet: ContextMenuActionSet = [[ { icon: RenameIcon, name: "Edit collection", execute: (dispatch, resource) => { - // add code + dispatch(openUpdater(resource.uuid)); } }, { @@ -35,7 +35,7 @@ export const collectionActionSet: ContextMenuActionSet = [[ component: ToggleFavoriteAction, execute: (dispatch, resource) => { dispatch(toggleFavorite(resource)).then(() => { - dispatch(dataExplorerActions.REQUEST_ITEMS({ id: FAVORITE_PANEL_ID })); + dispatch(favoritePanelActions.REQUEST_ITEMS()); }); } },