1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 02:42:47 +00:00

Merge branch '7.1' into master

This commit is contained in:
lian
2020-11-25 15:05:57 +08:00
32 changed files with 340 additions and 83 deletions

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,
});