Merge branch 'master' of git.curoverse.com:arvados-workbench2 into 14603-add-controll...
[arvados.git] / src / views-components / context-menu / action-sets / api-client-authorization-action-set.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import {
6     openApiClientAuthorizationAttributesDialog,
7     openApiClientAuthorizationRemoveDialog
8 } from '~/store/api-client-authorizations/api-client-authorizations-actions';
9 import { openAdvancedTabDialog } from '~/store/advanced-tab/advanced-tab';
10 import { ContextMenuActionSet } from "~/views-components/context-menu/context-menu-action-set";
11 import { AdvancedIcon, RemoveIcon, AttributesIcon } from "~/components/icon/icon";
12
13 export const apiClientAuthorizationActionSet: ContextMenuActionSet = [[{
14     name: "Attributes",
15     icon: AttributesIcon,
16     execute: (dispatch, { uuid }) => {
17         dispatch<any>(openApiClientAuthorizationAttributesDialog(uuid));
18     }
19 }, {
20     name: "Advanced",
21     icon: AdvancedIcon,
22     execute: (dispatch, { uuid }) => {
23         dispatch<any>(openAdvancedTabDialog(uuid));
24     }
25 }, {
26     name: "Remove",
27     icon: RemoveIcon,
28     execute: (dispatch, { uuid }) => {
29         dispatch<any>(openApiClientAuthorizationRemoveDialog(uuid));
30     }
31 }]];