1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { AdvancedIcon, AttributesIcon, UserPanelIcon } from 'components/icon/icon';
6 import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab';
7 import { openUserAttributes } from 'store/users/users-actions';
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.ATTRIBUTES,
19 execute: (dispatch, resources) => {
20 dispatch<any>(openUserAttributes(resources[0].uuid));
24 name: ContextMenuActionNames.API_DETAILS,
28 execute: (dispatch, resources) => {
29 dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
33 name: ContextMenuActionNames.USER_ACCOUNT,
37 execute: (dispatch, resources) => {
38 dispatch<any>(navigateToUserProfile(resources[0].uuid));