1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { ContextMenuActionSet, ContextMenuActionNames } from 'views-components/context-menu/context-menu-action-set';
6 import { RenameIcon, AdvancedIcon, RemoveIcon, DetailsIcon } from 'components/icon/icon';
7 import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab';
8 import { openRemoveGroupDialog, openGroupUpdateDialog } from 'store/groups-panel/groups-panel-actions';
9 import { toggleDetailsPanel } from 'store/details-panel/details-panel-action';
11 export const groupActionSet: ContextMenuActionSet = [
14 name: ContextMenuActionNames.RENAME,
16 execute: (dispatch, resources) => {
17 dispatch<any>(openGroupUpdateDialog(resources[0]))
21 name: ContextMenuActionNames.API_DETAILS,
23 execute: (dispatch, resources) => {
24 dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
28 name: ContextMenuActionNames.REMOVE,
30 execute: (dispatch, resources) => {
31 dispatch<any>(openRemoveGroupDialog(resources[0].uuid));
35 name: ContextMenuActionNames.VIEW_DETAILS,
37 execute: (dispatch, resources) => {
38 dispatch<any>(toggleDetailsPanel(resources[0].uuid));