1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-27 15:54:39 +00:00

[org admin / users] fixup for sort by 'Space Used' (#4682)

This commit is contained in:
llj
2020-09-24 16:53:55 +08:00
committed by GitHub
parent 98ca2dfaa1
commit 44c20e5bc7
4 changed files with 17 additions and 6 deletions

View File

@@ -11,8 +11,8 @@ class OrgUserInfo {
this.email = object.email;
this.contact_email = object.owner_contact_email;
this.is_active = object.is_active;
this.quota = object.quota > 0 ? Utils.bytesToSize(object.quota) : '';
this.self_usage = Utils.bytesToSize(object.self_usage);
this.quota_usage = object.quota_usage;
this.quota_total = object.quota_total;
this.last_login = object.last_login ? moment(object.last_login).fromNow() : '--';
this.ctime = moment(object.ctime).format('YYYY-MM-DD HH:mm:ss');
}