1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 10:50:24 +00:00

[org admin] added sort for 'libraries/users' (#4548)

* users: split 'all' & 'admin'
* bugfix & improvement for pages
This commit is contained in:
llj
2020-04-27 14:46:41 +08:00
committed by GitHub
parent 82370c25ca
commit 744eca3a7c
11 changed files with 419 additions and 270 deletions

View File

@@ -130,7 +130,7 @@ class UserItem extends React.Component {
return (
<tr className={this.state.highlight ? 'tr-highlight' : ''} onMouseEnter={this.onMouseEnter} onMouseLeave={this.onMouseLeave}>
<td>
<a href={href} className="font-weight-normal">{user.name}</a>
<a href={href}>{user.name}</a>
</td>
<td>
<UserStatusEditor
@@ -141,8 +141,12 @@ class UserItem extends React.Component {
onStatusChanged={this.changeStatus}
/>
</td>
<td>{user.quota ? user.self_usage + ' / ' + user.quota : user.self_usage}</td>
<td style={{'fontSize': '11px'}}>{user.ctime} / {user.last_login ? user.last_login : '--'}</td>
<td>{`${user.self_usage} / ${user.quota || '--'}`}</td>
<td>
{user.ctime} /
<br />
{user.last_login ? user.last_login : '--'}
</td>
<td className="text-center cursor-pointer">
{isOperationMenuShow && (
<Dropdown isOpen={this.state.isItemMenuShow} toggle={this.toggleOperationMenu}>