1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { ContextMenuActionSet } from "../context-menu-action-set";
6 import { DetailsIcon, AdvancedIcon, OpenIcon, Link } from 'components/icon/icon';
7 import { openAdvancedTabDialog } from "store/advanced-tab/advanced-tab";
8 import { toggleDetailsPanel } from 'store/details-panel/details-panel-action';
9 import { copyToClipboardAction, openInNewTabAction } from "store/open-in-new-tab/open-in-new-tab.actions";
11 export const searchResultsActionSet: ContextMenuActionSet = [
15 name: "Open in new tab",
16 execute: (dispatch, resource) => {
17 dispatch<any>(openInNewTabAction(resource));
22 name: "Copy to clipboard",
23 execute: (dispatch, resource) => {
24 dispatch<any>(copyToClipboardAction(resource));
30 execute: dispatch => {
31 dispatch<any>(toggleDetailsPanel());
37 execute: (dispatch, resource) => {
38 dispatch<any>(openAdvancedTabDialog(resource.uuid));