Skip to content
Permalink
Browse files
[fix]Disable the button to reset the current user password in the Use…
…r admin list (#38)

Disable the button to reset the current user password in the User admin list
  • Loading branch information
wangyf0555 committed Apr 8, 2022
1 parent f217049 commit 5cbd4fd54f9fd91a7e24149abfa50e1176433bdd
Showing 1 changed file with 4 additions and 1 deletion.
@@ -106,7 +106,10 @@ export function UserList() {
{t`edit`}
</FlatBtn>

<FlatBtn onClick={() => handleResetPassword(record)}>{t`resetPassword`}</FlatBtn>
<FlatBtn
onClick={() => handleResetPassword(record)}
disabled={disabled}
>{t`resetPassword`}</FlatBtn>

<FlatBtn onClick={() => toggleActivate(record)} disabled={disabled}>
{record.is_active ? t`deactivateUser` : t`activateUser`}

0 comments on commit 5cbd4fd

Please sign in to comment.