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";
19 export const userActionSet: ContextMenuActionSet = [[{
22 execute: (dispatch, { uuid }) => {
23 dispatch<any>(openUserAttributes(uuid));
28 execute: (dispatch, { uuid }) => {
29 dispatch<any>(openUserProjects(uuid));
34 execute: (dispatch, { uuid }) => {
35 dispatch<any>(openAdvancedTabDialog(uuid));
38 name: "Account Settings",
40 execute: (dispatch, { uuid }) => {
41 dispatch<any>(openAdvancedTabDialog(uuid));
46 execute: (dispatch, { uuid }) => {
47 dispatch<any>(openSetupDialog(uuid));
50 name: "Deactivate User",
51 icon: DeactivateUserIcon,
52 execute: (dispatch, { uuid }) => {
53 dispatch<any>(openDeactivateDialog(uuid));
56 name: "Login As User",
58 execute: (dispatch, { uuid }) => {
59 dispatch<any>(loginAs(uuid));