b31bea40dc898eb15f9fbb81b099e6f2b6674dd9
[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 import { ResourcesState } from "store/resources/resources";
8
9 export const MultiSelectMenuActionNames = {
10   MAKE_A_COPY: "Make a copy",
11   MOVE_TO: "Move to",
12   ADD_TO_TRASH: "Add to Trash",
13   ADD_TO_FAVORITES: "Add to Favorites",
14   COPY_TO_CLIPBOARD: "Copy to clipboard",
15   COPY_AND_RERUN_PROCESS: "Copy and re-run process",
16   REMOVE: "Remove",
17 };
18
19 export interface MultiSelectMenuAction extends ContextMenuAction {
20     defaultText?: string;
21     altText?: string;
22     altIcon?: IconType;
23     isDefault?: (uuid: string | null, resources: ResourcesState, favorites) => boolean;
24     isForMulti: boolean;
25 }
26
27 export type MultiSelectMenuActionSet = MultiSelectMenuAction[][];