From: Stephen Smith Date: Thu, 31 Mar 2022 02:29:18 +0000 (-0400) Subject: 18559: Add account status indicator to user profile X-Git-Tag: 2.4.0~1^2~4 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/2ab43f230662c3f5d7d7ff75c08bdab0c66b22b0 18559: Add account status indicator to user profile Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- diff --git a/src/views-components/data-explorer/renderers.tsx b/src/views-components/data-explorer/renderers.tsx index d1fed3a9..8b29b24d 100644 --- a/src/views-components/data-explorer/renderers.tsx +++ b/src/views-components/data-explorer/renderers.tsx @@ -225,11 +225,11 @@ const renderAccountStatus = (props: {status: UserAccountStatus}) => {(() => { switch(props.status) { case UserAccountStatus.ACTIVE: - return ; + return ; case UserAccountStatus.SETUP: - return ; + return ; case UserAccountStatus.INACTIVE: - return ; + return ; default: return <>; } diff --git a/src/views/user-profile-panel/user-profile-panel-root.tsx b/src/views/user-profile-panel/user-profile-panel-root.tsx index acb1c161..445f15e8 100644 --- a/src/views/user-profile-panel/user-profile-panel-root.tsx +++ b/src/views/user-profile-panel/user-profile-panel-root.tsx @@ -30,7 +30,7 @@ import { USER_PROFILE_PANEL_ID } from 'store/user-profile/user-profile-actions'; import { noop } from 'lodash'; import { DetailsIcon, GroupsIcon, MoreOptionsIcon } from 'components/icon/icon'; import { DataColumns } from 'components/data-table/data-table'; -import { ResourceLinkHeadUuid, ResourceLinkHeadPermissionLevel, ResourceLinkHead, ResourceLinkDelete, ResourceLinkTailIsVisible } from 'views-components/data-explorer/renderers'; +import { ResourceLinkHeadUuid, ResourceLinkHeadPermissionLevel, ResourceLinkHead, ResourceLinkDelete, ResourceLinkTailIsVisible, UserResourceAccountStatus } from 'views-components/data-explorer/renderers'; import { createTree } from 'models/tree'; import { getResource, ResourcesState } from 'store/resources/resources'; import { DefaultView } from 'components/default-view/default-view'; @@ -205,21 +205,26 @@ export const UserProfilePanelRoot = withStyles(styles)( {this.state.value === TABS.PROFILE && - + {this.props.userUuid} - - - this.handleContextMenu(event, this.props.userUuid)}> - - - + + + + + + this.handleContextMenu(event, this.props.userUuid)}> + + + + +