X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/a3f999f2a914f5921e047c508cbc839d76343e4e..f6093a73debdd7135870582088202da459386f17:/src/views-components/context-menu/action-sets/collection-resource-action-set.ts diff --git a/src/views-components/context-menu/action-sets/collection-resource-action-set.ts b/src/views-components/context-menu/action-sets/collection-resource-action-set.ts index 30ef4e79..5e367906 100644 --- a/src/views-components/context-menu/action-sets/collection-resource-action-set.ts +++ b/src/views-components/context-menu/action-sets/collection-resource-action-set.ts @@ -6,14 +6,15 @@ import { ContextMenuActionSet } from "../context-menu-action-set"; import { ToggleFavoriteAction } from "../actions/favorite-action"; import { ToggleTrashAction } from "~/views-components/context-menu/actions/trash-action"; import { toggleFavorite } from "~/store/favorites/favorites-actions"; -import { RenameIcon, ShareIcon, MoveToIcon, CopyIcon, DetailsIcon, RemoveIcon } from "~/components/icon/icon"; +import { RenameIcon, ShareIcon, MoveToIcon, CopyIcon, DetailsIcon, AdvancedIcon } from '~/components/icon/icon'; import { openCollectionUpdateDialog } from "~/store/collections/collection-update-actions"; import { favoritePanelActions } from "~/store/favorite-panel/favorite-panel-action"; import { openMoveCollectionDialog } from '~/store/collections/collection-move-actions'; import { openCollectionCopyDialog } from '~/store/collections/collection-copy-actions'; import { toggleCollectionTrashed } from "~/store/trash/trash-actions"; -import { detailsPanelActions } from '~/store/details-panel/details-panel-action'; import { openSharingDialog } from "~/store/sharing-dialog/sharing-dialog-actions"; +import { openAdvancedTabDialog } from '~/store/advanced-tab/advanced-tab'; +import { toggleDetailsPanel } from '~/store/details-panel/details-panel-action'; export const collectionResourceActionSet: ContextMenuActionSet = [[ { @@ -30,13 +31,6 @@ export const collectionResourceActionSet: ContextMenuActionSet = [[ dispatch(openSharingDialog(uuid)); } }, - { - icon: MoveToIcon, - name: "Move to", - execute: (dispatch, resource) => { - dispatch(openMoveCollectionDialog(resource)); - } - }, { component: ToggleFavoriteAction, execute: (dispatch, resource) => { @@ -46,9 +40,10 @@ export const collectionResourceActionSet: ContextMenuActionSet = [[ } }, { - component: ToggleTrashAction, + icon: MoveToIcon, + name: "Move to", execute: (dispatch, resource) => { - dispatch(toggleCollectionTrashed(resource.uuid, resource.isTrashed!!)); + dispatch(openMoveCollectionDialog(resource)); } }, { @@ -62,14 +57,27 @@ export const collectionResourceActionSet: ContextMenuActionSet = [[ icon: DetailsIcon, name: "View details", execute: dispatch => { - dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL()); + dispatch(toggleDetailsPanel()); } }, { - icon: RemoveIcon, - name: "Remove", + icon: AdvancedIcon, + name: "Advanced", execute: (dispatch, resource) => { - // add code + dispatch(openAdvancedTabDialog(resource.uuid)); } - } + }, + { + component: ToggleTrashAction, + execute: (dispatch, resource) => { + dispatch(toggleCollectionTrashed(resource.uuid, resource.isTrashed!!)); + } + }, + // { + // icon: RemoveIcon, + // name: "Remove", + // execute: (dispatch, resource) => { + // // add code + // } + // } ]];