1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { AdvancedIcon, DetailsIcon, UserPanelIcon } from 'components/icon/icon';
6 import { openDetailsPanel } from 'store/details-panel/details-panel-action';
7 import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab';
8 import { navigateToUserProfile } from 'store/navigation/navigation-action';
9 import { ContextMenuActionNames } from "views-components/context-menu/context-menu-action-set";
10 import { MultiSelectMenuActionSet } from './ms-menu-actions';
12 export const UserDetailsActionSet: MultiSelectMenuActionSet= [
15 name: ContextMenuActionNames.VIEW_DETAILS,
19 execute: (dispatch, resources) => {
20 dispatch<any>(openDetailsPanel(resources[0].uuid));
24 name: ContextMenuActionNames.USER_ACCOUNT,
28 execute: (dispatch, resources) => {
29 dispatch<any>(navigateToUserProfile(resources[0].uuid));
33 name: ContextMenuActionNames.API_DETAILS,
37 execute: (dispatch, resources) => {
38 dispatch<any>(openAdvancedTabDialog(resources[0].uuid));