c34df023312c8b7f2d3b3973e22ef6ef5ec14338
[arvados-workbench2.git] / src / views-components / multiselect-toolbar / ms-menu-action-set.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { IconType } from "components/icon/icon";
6 import { ContextMenuAction } from "../context-menu/context-menu-action-set";
7
8 export const MultiSelectMenuActionNames = {
9   MAKE_A_COPY: "Make a copy",
10   MOVE_TO: "Move to",
11   TOGGLE_TRASH_ACTION: "ToggleTrashAction",
12   TOGGLE_FAVORITE_ACTION: "ToggleFavoriteAction",
13   COPY_TO_CLIPBOARD: "Copy to clipboard",
14   COPY_AND_RERUN_PROCESS: "Copy and re-run process",
15   REMOVE: "Remove",
16 };
17
18 export interface MultiSelectMenuAction extends ContextMenuAction {
19     defaultText?: string;
20     altText?: string;
21     altIcon?: IconType;
22     isDefault?: () => boolean;
23 }
24
25 export type MultiSelectMenuActionSet = Array<Array<MultiSelectMenuAction>>;