conflicts
[arvados-workbench2.git] / src / views-components / context-menu / action-sets / keep-service-action-set.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { openKeepServiceAttributesDialog, openKeepServiceRemoveDialog } from '~/store/keep-services/keep-services-actions';
6 import { openAdvancedTabDialog } from '~/store/advanced-tab/advanced-tab';
7 import { ContextMenuActionSet } from "~/views-components/context-menu/context-menu-action-set";
8 import { AdvancedIcon, RemoveIcon, AttributesIcon } from "~/components/icon/icon";
9
10 export const keepServiceActionSet: ContextMenuActionSet = [[{
11     name: "Attributes",
12     icon: AttributesIcon,
13     execute: (dispatch, { uuid }) => {
14         dispatch<any>(openKeepServiceAttributesDialog(uuid));
15     }
16 }, {
17     name: "Advanced",
18     icon: AdvancedIcon,
19     execute: (dispatch, { uuid }) => {
20         dispatch<any>(openAdvancedTabDialog(uuid));
21     }
22 }, {
23     name: "Remove",
24     icon: RemoveIcon,
25     execute: (dispatch, { uuid }) => {
26         dispatch<any>(openKeepServiceRemoveDialog(uuid));
27     }
28 }]];