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

Org libraries (#3110)

* org admin libraris

* update front page

* update code style

* refactor code

* update api name
This commit is contained in:
陈钦亮
2019-03-15 16:30:20 +08:00
committed by Daniel Pan
parent 39703d58c9
commit 7dfb1cfe75
12 changed files with 365 additions and 78 deletions

View File

@@ -83,18 +83,18 @@ class OrgAdminList extends React.Component {
let orgAdminUsers = this.state.orgAdminUsers;
return (
<div className="cur-view-content">
<table>
<thead>
<tr>
<th width="30%">{gettext('Name')}</th>
<th width="15%">{gettext('Status')}</th>
<th width="15%">{gettext('Space Used')}</th>
<th width="20%">{gettext('Create At / Last Login')}</th>
<th width="20%" className="text-center">{gettext('Operations')}</th>
</tr>
</thead>
<tbody>
<div className="cur-view-content">
<table>
<thead>
<tr>
<th width="30%">{gettext('Name')}</th>
<th width="15%">{gettext('Status')}</th>
<th width="15%">{gettext('Space Used')}</th>
<th width="20%">{gettext('Create At / Last Login')}</th>
<th width="20%" className="text-center">{gettext('Operations')}</th>
</tr>
</thead>
<tbody>
{orgAdminUsers.map(item => {
return (
<UserItem
@@ -108,13 +108,13 @@ class OrgAdminList extends React.Component {
onUnfreezedItem={this.onUnfreezedItem}
/>
)})}
</tbody>
</table>
{this.props.isShowAddOrgAdminDialog && (
<ModalPortal>
<AddOrgAdminDialog toggle={this.props.toggleAddOrgAdmin} addOrgAdmin={this.addOrgAdmin} />
</ModalPortal>
)}
</tbody>
</table>
{this.props.isShowAddOrgAdminDialog && (
<ModalPortal>
<AddOrgAdminDialog toggle={this.props.toggleAddOrgAdmin} addOrgAdmin={this.addOrgAdmin} />
</ModalPortal>
)}
</div>
);
}