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 { AdvancedIcon, RemoveIcon, AttributesIcon } from 'components/icon/icon';
7 import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab';
8 import { openVirtualMachineAttributes, openRemoveVirtualMachineDialog } from 'store/virtual-machines/virtual-machines-actions';
10 export const virtualMachineActionSet: ContextMenuActionSet = [
13 name: ContextMenuActionNames.ATTRIBUTES,
15 execute: (dispatch, resources) => {
16 dispatch<any>(openVirtualMachineAttributes(resources[0].uuid));
20 name: ContextMenuActionNames.API_DETAILS,
22 execute: (dispatch, resources) => {
23 dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
27 name: ContextMenuActionNames.REMOVE,
29 execute: (dispatch, resources) => {
30 dispatch<any>(openRemoveVirtualMachineDialog(resources[0].uuid));