1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-22 20:08:19 +00:00

replace code to user-select component (#3033)

This commit is contained in:
杨顺强
2019-03-04 15:53:12 +08:00
committed by Daniel Pan
parent 6ca920db64
commit 9498551ca2
6 changed files with 39 additions and 141 deletions

View File

@@ -65,8 +65,8 @@ class OrgAdminList extends React.Component {
});
}
addOrgAdmin = (users) => {
seafileAPI.setOrgAdmin(orgID, users, true).then(res => {
addOrgAdmin = (userEmail) => {
seafileAPI.setOrgAdmin(orgID, userEmail, true).then(res => {
let userInfo = new OrgUserInfo(res.data);
this.state.orgAdminUsers.unshift(userInfo);
this.setState({