1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 23:29:49 +00:00

Compare initial size

This commit is contained in:
zxj96
2019-05-30 14:31:24 +08:00
parent 4c68ee85f3
commit 3fc5137409
3 changed files with 8 additions and 31 deletions

View File

@@ -13,6 +13,7 @@ class Dirent {
this.isSelected = false; // is check or not
this.starred = json.starred || false;
if (json.type === 'file') {
this.Initialsize = json.size;
this.size = Utils.bytesToSize(json.size);
this.is_locked = json.is_locked || false;
this.lock_time = json.lock_time || '';

View File

@@ -6,6 +6,7 @@ class Repo {
this.repo_name = object.repo_name;
this.permission = object.permission;
this.size = Utils.bytesToSize(object.size);
this.Initialsize = object.size
this.owner_name = object.owner_name;
this.owner_email = object.owner_email;
this.owner_contact_email = object.owner_contact_email;