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";
15 } from "components/icon/icon";
16 import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab';
17 import { loginAs, openUserAttributes, openUserProjects } from "store/users/users-actions";
18 import { openSetupDialog, openDeactivateDialog, openActivateDialog } from "store/user-profile/user-profile-actions";
19 import { navigateToUserProfile } from "store/navigation/navigation-action";
21 export const userActionSet: ContextMenuActionSet = [[{
24 execute: (dispatch, { uuid }) => {
25 dispatch<any>(openUserAttributes(uuid));
30 execute: (dispatch, { uuid }) => {
31 dispatch<any>(openUserProjects(uuid));
36 execute: (dispatch, { uuid }) => {
37 dispatch<any>(openAdvancedTabDialog(uuid));
40 name: "Account Settings",
42 execute: (dispatch, { uuid }) => {
43 dispatch<any>(navigateToUserProfile(uuid));
46 name: "Activate User",
49 execute: (dispatch, { uuid }) => {
50 dispatch<any>(openActivateDialog(uuid));
56 execute: (dispatch, { uuid }) => {
57 dispatch<any>(openSetupDialog(uuid));
60 name: "Deactivate User",
62 icon: DeactivateUserIcon,
63 execute: (dispatch, { uuid }) => {
64 dispatch<any>(openDeactivateDialog(uuid));
67 name: "Login As User",
70 execute: (dispatch, { uuid }) => {
71 dispatch<any>(loginAs(uuid));