1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +00:00

fix bug of org admin change user active status (#4715)

Co-authored-by: lian <lian@seafile.com>
This commit is contained in:
lian
2020-11-11 09:56:40 +08:00
committed by GitHub
parent 407061e743
commit bbac14cc4a

View File

@@ -77,16 +77,16 @@ class UserItem extends React.Component {
}
changeStatus = (st) => {
let statusCode;
let isActive;
if (st == 'active') {
statusCode = 1;
isActive = 'true';
} else {
statusCode = 0;
isActive = 'false';
}
seafileAPI.orgAdminChangeOrgUserStatus(this.props.user.id, statusCode).then(res => {
seafileAPI.orgAdminChangeOrgUserStatus(orgID, this.props.user.email, isActive).then(res => {
this.setState({
currentStatus: statusCode == 1 ? 'active' : 'inactive',
currentStatus: isActive == 'true' ? 'active' : 'inactive',
highlight: false,
showMenu: false,
});