1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { ContextMenuActionSet } from "views-components/context-menu/context-menu-action-set";
6 import { AdvancedIcon, RemoveIcon, ShareIcon, AttributesIcon } from "components/icon/icon";
7 import { openAdvancedTabDialog } from "store/advanced-tab/advanced-tab";
8 import { openRepositoryAttributes, openRemoveRepositoryDialog } from "store/repositories/repositories-actions";
9 import { openSharingDialog } from "store/sharing-dialog/sharing-dialog-actions";
11 export const repositoryActionSet: ContextMenuActionSet = [[{
14 execute: (dispatch, { uuid }) => {
15 dispatch<any>(openRepositoryAttributes(uuid));
20 execute: (dispatch, { uuid }) => {
21 dispatch<any>(openSharingDialog(uuid));
26 execute: (dispatch, resource) => {
27 dispatch<any>(openAdvancedTabDialog(resource.uuid));
32 execute: (dispatch, { uuid }) => {
33 dispatch<any>(openRemoveRepositoryDialog(uuid));