Skip to content

Commit

Permalink
feat: migrate create user modal into react component
Browse files Browse the repository at this point in the history
  • Loading branch information
ironAiken2 committed Oct 16, 2024
1 parent 41a5976 commit e73f379
Show file tree
Hide file tree
Showing 3 changed files with 260 additions and 97 deletions.
11 changes: 9 additions & 2 deletions react/src/components/UserInfoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const UserInfoModal: React.FC<Props> = ({ ...baiModalProps }) => {
id
name
}
resource_policy
# TODO: reflect https://github.com/lablup/backend.ai-webui/pull/1999
# support from 23.09.0b1
# https://github.com/lablup/backend.ai/pull/1530
Expand Down Expand Up @@ -115,6 +116,9 @@ const UserInfoModal: React.FC<Props> = ({ ...baiModalProps }) => {
<Descriptions.Item label={t('credential.UserID')}>
{user?.email}
</Descriptions.Item>
<Descriptions.Item label={t('credential.Description')}>
{user?.description}
</Descriptions.Item>
<Descriptions.Item label={t('credential.UserName')}>
{user?.username}
</Descriptions.Item>
Expand Down Expand Up @@ -150,11 +154,14 @@ const UserInfoModal: React.FC<Props> = ({ ...baiModalProps }) => {
title={t('credential.Association')}
labelStyle={{ width: '50%' }}
>
<Descriptions.Item label={t('credential.Role')}>
{user?.role}
</Descriptions.Item>
<Descriptions.Item label={t('credential.Domain')}>
{user?.domain_name}
</Descriptions.Item>
<Descriptions.Item label={t('credential.Role')}>
{user?.role}
<Descriptions.Item label={t('credential.ResourcePolicy')}>
{user?.resource_policy}
</Descriptions.Item>
</Descriptions>
<br />
Expand Down
Loading

0 comments on commit e73f379

Please sign in to comment.