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";
14 } from "components/icon/icon";
15 import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab';
16 import { loginAs, openUserAttributes, openUserProjects } from "store/users/users-actions";
17 import { openSetupDialog, openDeactivateDialog } from "store/user-profile/user-profile-actions";
18 import { navigateToUserProfile } from "store/navigation/navigation-action";
20 export const userActionSet: ContextMenuActionSet = [[{
23 execute: (dispatch, { uuid }) => {
24 dispatch<any>(openUserAttributes(uuid));
29 execute: (dispatch, { uuid }) => {
30 dispatch<any>(openUserProjects(uuid));
35 execute: (dispatch, { uuid }) => {
36 dispatch<any>(openAdvancedTabDialog(uuid));
39 name: "Account Settings",
41 execute: (dispatch, { uuid }) => {
42 dispatch<any>(navigateToUserProfile(uuid));
47 execute: (dispatch, { uuid }) => {
48 dispatch<any>(openSetupDialog(uuid));
51 name: "Deactivate User",
52 icon: DeactivateUserIcon,
53 execute: (dispatch, { uuid }) => {
54 dispatch<any>(openDeactivateDialog(uuid));
57 name: "Login As User",
59 execute: (dispatch, { uuid }) => {
60 dispatch<any>(loginAs(uuid));