[arvados-workbench2] created: 2.4.0-319-g6522c126
git repository hosting
git at public.arvados.org
Wed Oct 26 13:57:00 UTC 2022
at 6522c126265875505b3f616c867ef7d655a4da80 (commit)
commit 6522c126265875505b3f616c867ef7d655a4da80
Author: Stephen Smith <stephen at curii.com>
Date: Wed Oct 26 09:56:24 2022 -0400
19569: Add open in new tab action to process resource action set
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>
diff --git a/src/views-components/context-menu/action-sets/process-resource-action-set.ts b/src/views-components/context-menu/action-sets/process-resource-action-set.ts
index 56cfee85..78b2f340 100644
--- a/src/views-components/context-menu/action-sets/process-resource-action-set.ts
+++ b/src/views-components/context-menu/action-sets/process-resource-action-set.ts
@@ -8,7 +8,8 @@ import { toggleFavorite } from "store/favorites/favorites-actions";
import {
RenameIcon, ShareIcon, MoveToIcon, CopyIcon, DetailsIcon,
RemoveIcon, ReRunProcessIcon, OutputIcon,
- AdvancedIcon
+ AdvancedIcon,
+ OpenIcon
} from "components/icon/icon";
import { favoritePanelActions } from "store/favorite-panel/favorite-panel-action";
import { openMoveProcessDialog } from 'store/processes/process-move-actions';
@@ -23,6 +24,7 @@ import { openAdvancedTabDialog } from "store/advanced-tab/advanced-tab";
import { TogglePublicFavoriteAction } from "../actions/public-favorite-action";
import { togglePublicFavorite } from "store/public-favorites/public-favorites-actions";
import { publicFavoritePanelActions } from "store/public-favorites-panel/public-favorites-action";
+import { openInNewTabAction } from "store/open-in-new-tab/open-in-new-tab.actions";
export const readOnlyProcessResourceActionSet: ContextMenuActionSet = [[
{
@@ -33,6 +35,13 @@ export const readOnlyProcessResourceActionSet: ContextMenuActionSet = [[
});
}
},
+ {
+ icon: OpenIcon,
+ name: "Open in new tab",
+ execute: (dispatch, resource) => {
+ dispatch<any>(openInNewTabAction(resource));
+ }
+ },
{
icon: CopyIcon,
name: "Copy to project",
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list