mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 18:30:53 +00:00
add mtime_relative param (#2756)
This commit is contained in:
@@ -7,7 +7,8 @@ class Dirent {
|
||||
this.id = json.id;
|
||||
this.name = json.name;
|
||||
this.type = json.type;
|
||||
this.mtime = moment.unix(json.mtime).fromNow();
|
||||
this.mtime = json.mtime;
|
||||
this.mtime_relative = moment.unix(json.mtime).fromNow();
|
||||
this.permission = json.permission;
|
||||
this.isSelected = false; // is check or not
|
||||
if (json.type === 'file') {
|
||||
|
Reference in New Issue
Block a user