// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import { ContextMenuActionSet, ContextMenuActionNames } from 'views-components/context-menu/context-menu-action-set'; import { AdvancedIcon, RemoveIcon, AttributesIcon } from 'components/icon/icon'; import { openSshKeyRemoveDialog, openSshKeyAttributesDialog } from 'store/auth/auth-action-ssh'; import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab'; export const sshKeyActionSet: ContextMenuActionSet = [ [ { name: ContextMenuActionNames.ATTRIBUTES, icon: AttributesIcon, execute: (dispatch, resources) => { dispatch(openSshKeyAttributesDialog(resources[0].uuid)); }, }, { name: ContextMenuActionNames.API_DETAILS, icon: AdvancedIcon, execute: (dispatch, resources) => { dispatch(openAdvancedTabDialog(resources[0].uuid)); }, }, { name: ContextMenuActionNames.REMOVE, icon: RemoveIcon, execute: (dispatch, resources) => { dispatch(openSshKeyRemoveDialog(resources[0].uuid)); }, }, ], ];