// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import { ContextMenuActionSet } from "~/views-components/context-menu/context-menu-action-set"; import { AdvancedIcon, RemoveIcon, AttributesIcon } from "~/components/icon/icon"; import { openAdvancedTabDialog } from '~/store/advanced-tab/advanced-tab'; import { openVirtualMachineAttributes, openRemoveVirtualMachineDialog } from "~/store/virtual-machines/virtual-machines-actions"; export const virtualMachineActionSet: ContextMenuActionSet = [[{ name: "Attributes", icon: AttributesIcon, execute: (dispatch, { index }) => { dispatch(openVirtualMachineAttributes(index!)); } }, { name: "Advanced", icon: AdvancedIcon, execute: (dispatch, { uuid, index }) => { dispatch(openAdvancedTabDialog(uuid, index)); } }, { name: "Remove", icon: RemoveIcon, execute: (dispatch, { uuid }) => { dispatch(openRemoveVirtualMachineDialog(uuid)); } }]];