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

Upload improve (#2753)

This commit is contained in:
杨顺强
2019-01-05 11:43:33 +08:00
committed by Daniel Pan
parent b04c0ab5d1
commit 6dbd69c436
6 changed files with 198 additions and 60 deletions

View File

@@ -13,8 +13,8 @@ class Dirent {
this.isSelected = false; // is check or not
if (json.type === 'file') {
this.size = Utils.bytesToSize(json.size);
this.starred = json.starred;
this.is_locked = json.is_locked;
this.starred = json.starred || false;
this.is_locked = json.is_locked || false;
this.lock_time = moment.unix(json.lock_time).fromNow();
this.lock_owner= json.lock_owner;
this.locked_by_me = json.locked_by_me;