Skip to content

Commit

Permalink
fix(uam): open admin pwd modify (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
taoyingsong committed Nov 10, 2020
1 parent a280705 commit 2c96d0e
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,21 @@ export const UserTablePanel = () => {

if (user.spec.username.toLowerCase() === 'admin') {
return (
<LinkButton tipDirection="right" errorTip="管理员不能被删除" disabled>
<Trans>删除</Trans>
</LinkButton>
<>
<LinkButton
tipDirection="left"
disabled={isDisable}
onClick={() => {
setEditUser(user);
pwdToggle();
}}
>
{t('修改密码')}
</LinkButton>
<LinkButton tipDirection="right" errorTip="管理员不能被删除" disabled>
<Trans>删除</Trans>
</LinkButton>
</>
);
}
return (
Expand Down

0 comments on commit 2c96d0e

Please sign in to comment.