// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import { Dispatch } from "redux"; import { ContextMenuItem } from "components/context-menu/context-menu"; import { ContextMenuResource } from "store/context-menu/context-menu-actions"; export enum ContextMenuActionNames { ACCOUNT_SETTINGS = 'Account settings', ACTIVATE_USER = 'Activate user', ADD_TO_FAVORITES = 'Add to favorites', ADD_TO_PUBLIC_FAVORITES = 'Add to public favorites', ATTRIBUTES = 'Attributes', API_DETAILS = 'API Details', CANCEL = 'CANCEL', COPY_AND_RERUN_PROCESS = 'Copy and re-run process', COPY_ITEM_INTO_EXISTING_COLLECTION = 'Copy item into existing collection', COPY_ITEM_INTO_NEW_COLLECTION = 'Copy item into new collection', COPY_SELECTED_INTO_EXISTING_COLLECTION = 'Copy selected into existing collection', COPY_SELECTED_INTO_SEPARATE_COLLECTIONS = 'Copy selected into separate collections', COPY_SELECTED_INTO_NEW_COLLECTION = 'Copy selected into new collection', COPY_LINK_TO_CLIPBOARD = 'Copy link to clipboard', COPY_UUID_LINK_TO_CLIPBOARD = 'Copy link to clipboard (uuid)', COPY_PDH_LINK_TO_CLIPBOARD = 'Copy link to clipboard (pdh)', COPY_CWL_LINK_TO_CLIPBOARD = 'Copy link to clipboard (cwl)', DEACTIVATE_USER = 'Deactivate user', DELETE_WORKFLOW = 'Delete Workflow', DIVIDER = 'Divider', DOWNLOAD = 'Download', EDIT_COLLECTION = 'Edit collection', EDIT_PROCESS = 'Edit process', EDIT_PROJECT = 'Edit project', FREEZE_PROJECT = 'Freeze project', HOME_PROJECT = 'Home project', LOGIN_AS_USER = 'Login as user', MAKE_A_COPY = 'Make a copy', MANAGE = 'Manage', MOVE_ITEM_INTO_EXISTING_COLLECTION = 'Move item into existing collection', MOVE_ITEM_INTO_NEW_COLLECTION = 'Move item into new collection', MOVE_SELECTED_INTO_EXISTING_COLLECTION = 'Move selected into existing collection', MOVE_SELECTED_INTO_NEW_COLLECTION = 'Move selected into new collection', MOVE_SELECTED_INTO_SEPARATE_COLLECTIONS = 'Move selected into separate collections', MOVE_TO = 'Move to', MOVE_TO_TRASH = 'Move to trash', NEW_COLLECTION = 'New collection', NEW_PROJECT = 'New project', OPEN_IN_NEW_TAB = 'Open in new tab', OPEN_WITH_3RD_PARTY_CLIENT = 'Open with 3rd party client', OUTPUTS = 'Outputs', PROVENANCE_GRAPH = 'Provenance graph', READ = 'Read', REMOVE = 'Remove', REMOVE_SELECTED = 'Remove selected', RENAME = 'Rename', RESTORE = 'Restore', RESTORE_VERSION = 'Restore version', RUN_WORKFLOW = 'Run Workflow', SELECT_ALL = 'Select all', SETUP_USER = 'Setup user', SHARE = 'Share', UNSELECT_ALL = 'Unselect all', USER_ACCOUNT = 'User account', VIEW_DETAILS = 'View details', WRITE = 'Write', } export interface ContextMenuAction extends ContextMenuItem { execute(dispatch: Dispatch, resources: ContextMenuResource[], state?: any): void; } export type ContextMenuActionSet = Array>;