From cb52974675e851527b63ca98ab33f79c6d6f4ce8 Mon Sep 17 00:00:00 2001 From: Lisa Knox Date: Mon, 26 Feb 2024 09:10:31 -0500 Subject: [PATCH] 21224: cleanup Arvados-DCO-1.1-Signed-off-by: Lisa Knox --- .../details-attribute/details-attribute.tsx | 2 +- .../action-sets/user-details-action-set.ts | 23 +++---------------- .../project-details-card.tsx | 2 +- 3 files changed, 5 insertions(+), 22 deletions(-) diff --git a/services/workbench2/src/components/details-attribute/details-attribute.tsx b/services/workbench2/src/components/details-attribute/details-attribute.tsx index c10f558e77..d965b60f5b 100644 --- a/services/workbench2/src/components/details-attribute/details-attribute.tsx +++ b/services/workbench2/src/components/details-attribute/details-attribute.tsx @@ -87,7 +87,7 @@ export const DetailsAttribute = connect(mapStateToProps)(withStyles(styles)( render() { const { uuidEnhancer, link, value, classes, linkToUuid, - localCluster, remoteHostsConfig, sessions, label } = this.props; + localCluster, remoteHostsConfig, sessions } = this.props; let valueNode: React.ReactNode; if (linkToUuid) { diff --git a/services/workbench2/src/views-components/context-menu/action-sets/user-details-action-set.ts b/services/workbench2/src/views-components/context-menu/action-sets/user-details-action-set.ts index 2d365bc37f..eb9d888fe1 100644 --- a/services/workbench2/src/views-components/context-menu/action-sets/user-details-action-set.ts +++ b/services/workbench2/src/views-components/context-menu/action-sets/user-details-action-set.ts @@ -3,28 +3,11 @@ // SPDX-License-Identifier: AGPL-3.0 import { ContextMenuActionSet } from 'views-components/context-menu/context-menu-action-set'; -import { - AdvancedIcon, - ProjectIcon, - AttributesIcon, - DeactivateUserIcon, - UserPanelIcon, - LoginAsIcon, - AdminMenuIcon, - ActiveIcon, -} from 'components/icon/icon'; +import { AdvancedIcon, AttributesIcon, UserPanelIcon } from 'components/icon/icon'; import { openAdvancedTabDialog } from 'store/advanced-tab/advanced-tab'; -import { loginAs, openUserAttributes, openUserProjects } from 'store/users/users-actions'; -import { openSetupDialog, openDeactivateDialog, openActivateDialog } from 'store/user-profile/user-profile-actions'; +import { openUserAttributes } from 'store/users/users-actions'; import { navigateToUserProfile } from 'store/navigation/navigation-action'; -import { - canActivateUser, - canDeactivateUser, - canSetupUser, - isAdmin, - needsUserProfileLink, - isOtherUser, -} from 'store/context-menu/context-menu-filters'; +import { needsUserProfileLink } from 'store/context-menu/context-menu-filters'; export const UserDetailsActionSet: ContextMenuActionSet = [ [ diff --git a/services/workbench2/src/views-components/project-details-card/project-details-card.tsx b/services/workbench2/src/views-components/project-details-card/project-details-card.tsx index 7307af67ae..a3a1458acc 100644 --- a/services/workbench2/src/views-components/project-details-card/project-details-card.tsx +++ b/services/workbench2/src/views-components/project-details-card/project-details-card.tsx @@ -17,7 +17,7 @@ import { FavoriteStar, PublicFavoriteStar } from 'views-components/favorite-star import { MoreVerticalIcon, FreezeIcon } from 'components/icon/icon'; import { Resource } from 'models/resource'; import { IconButton } from '@material-ui/core'; -import { ContextMenuResource, openUserContextMenu } from 'store/context-menu/context-menu-actions'; +import { ContextMenuResource } from 'store/context-menu/context-menu-actions'; import { openContextMenu, resourceUuidToContextMenuKind } from 'store/context-menu/context-menu-actions'; import { CollectionResource } from 'models/collection'; import { ContextMenuKind } from 'views-components/context-menu/context-menu'; -- 2.30.2