mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 07:41:26 +00:00
non-display last update time, if mtime == 0 (#4068)
This commit is contained in:
@@ -8,7 +8,11 @@ class Dirent {
|
||||
this.name = json.name;
|
||||
this.type = json.type;
|
||||
this.mtime = json.mtime;
|
||||
this.mtime_relative = moment.unix(json.mtime).fromNow();
|
||||
if (json.mtime == 0) {
|
||||
this.mtime_relative = '';
|
||||
} else {
|
||||
this.mtime_relative = moment.unix(json.mtime).fromNow();
|
||||
}
|
||||
this.permission = json.permission || 'rw';
|
||||
this.isSelected = false; // is check or not
|
||||
this.starred = json.starred || false;
|
||||
|
Reference in New Issue
Block a user