21700: Install Bundler system-wide in Rails postinst
[arvados.git] / services / workbench2 / src / views-components / context-menu / action-sets / group-action-set.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { ContextMenuActionSet, ContextMenuActionNames } from 'views-components/context-menu/context-menu-action-set';
6 import { RenameIcon, AdvancedIcon, RemoveIcon, AttributesIcon } from 'components/icon/icon';
7 import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab';
8 import { openGroupAttributes, openRemoveGroupDialog, openGroupUpdateDialog } from 'store/groups-panel/groups-panel-actions';
9
10 export const groupActionSet: ContextMenuActionSet = [
11     [
12         {
13             name: ContextMenuActionNames.RENAME,
14             icon: RenameIcon,
15             execute: (dispatch, resources) => {
16                 dispatch<any>(openGroupUpdateDialog(resources[0]))
17             },
18         },
19         {
20             name: ContextMenuActionNames.ATTRIBUTES,
21             icon: AttributesIcon,
22             execute: (dispatch, resources) => {
23                 dispatch<any>(openGroupAttributes(resources[0].uuid))
24             },
25         },
26         {
27             name: ContextMenuActionNames.API_DETAILS,
28             icon: AdvancedIcon,
29             execute: (dispatch, resources) => {
30                 dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
31             },
32         },
33         {
34             name: ContextMenuActionNames.REMOVE,
35             icon: RemoveIcon,
36             execute: (dispatch, resources) => {
37                 dispatch<any>(openRemoveGroupDialog(resources[0].uuid));
38             },
39         },
40     ],
41 ];