X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a0aedfcf68e7b3d4caeee3e36d776ca0b34780bf..8e770bee7ad8ce5af04bdb6103eff530c52dd5c8:/src/views-components/context-menu/action-sets/repository-action-set.ts diff --git a/src/views-components/context-menu/action-sets/repository-action-set.ts b/src/views-components/context-menu/action-sets/repository-action-set.ts index 2f3a985ff0..82c2f2b8e0 100644 --- a/src/views-components/context-menu/action-sets/repository-action-set.ts +++ b/src/views-components/context-menu/action-sets/repository-action-set.ts @@ -3,32 +3,33 @@ // SPDX-License-Identifier: AGPL-3.0 import { ContextMenuActionSet } from "~/views-components/context-menu/context-menu-action-set"; -import { AdvancedIcon, RemoveIcon, ShareIcon } from "~/components/icon/icon"; -import { openFileRemoveDialog, openRenameFileDialog } from '~/store/collection-panel/collection-panel-files/collection-panel-files-actions'; +import { AdvancedIcon, RemoveIcon, ShareIcon, AttributesIcon } from "~/components/icon/icon"; +import { openAdvancedTabDialog } from "~/store/advanced-tab/advanced-tab"; +import { openRepositoryAttributes, openRemoveRepositoryDialog } from "~/store/repositories/repositories-actions"; +import { openSharingDialog } from "~/store/sharing-dialog/sharing-dialog-actions"; export const repositoryActionSet: ContextMenuActionSet = [[{ name: "Attributes", - icon: AdvancedIcon, - execute: (dispatch, resource) => { - dispatch(openRenameFileDialog({ name: resource.name, id: resource.uuid })); + icon: AttributesIcon, + execute: (dispatch, { uuid }) => { + dispatch(openRepositoryAttributes(uuid)); } }, { name: "Share", icon: ShareIcon, - execute: (dispatch, resource) => { - dispatch(openRenameFileDialog({ name: resource.name, id: resource.uuid })); + execute: (dispatch, { uuid }) => { + dispatch(openSharingDialog(uuid)); } }, { name: "Advanced", icon: AdvancedIcon, execute: (dispatch, resource) => { - dispatch(openFileRemoveDialog(resource.uuid)); + dispatch(openAdvancedTabDialog(resource.uuid)); } -}, -{ +}, { name: "Remove", icon: RemoveIcon, - execute: (dispatch, resource) => { - dispatch(openFileRemoveDialog(resource.uuid)); + execute: (dispatch, { uuid }) => { + dispatch(openRemoveRepositoryDialog(uuid)); } }]];