chore: update member list action buttons

This commit is contained in:
boojack
2022-07-26 22:36:24 +08:00
parent 7b1bad5b29
commit d371cfd78d
9 changed files with 104 additions and 14 deletions

View File

@ -55,7 +55,9 @@ const ChangePasswordDialog: React.FC<Props> = ({ destroy }: Props) => {
}
try {
const user = userService.getState().user as User;
await userService.patchUser({
id: user.id,
password: newPassword,
});
toastHelper.info("Password changed.");