1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { ContextMenuActionSet } from 'views-components/context-menu/context-menu-action-set';
6 import { AdvancedIcon, AttributesIcon, UserPanelIcon } from 'components/icon/icon';
7 import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab';
8 import { openUserAttributes } from 'store/users/users-actions';
9 import { navigateToUserProfile } from 'store/navigation/navigation-action';
10 import { needsUserProfileLink } from 'store/context-menu/context-menu-filters';
12 export const UserDetailsActionSet: ContextMenuActionSet = [
17 execute: (dispatch, resources) => {
18 dispatch<any>(openUserAttributes(resources[0].uuid));
24 execute: (dispatch, resources) => {
25 dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
31 execute: (dispatch, resources) => {
32 dispatch<any>(navigateToUserProfile(resources[0].uuid));
34 filters: [needsUserProfileLink],