File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import FileSelectDialog from './FileSelectDialog';
55interface SelectedFolder {
66 id : string ;
77 name : string ;
8+ created_at : string ;
89 last_modified_at : string ;
910 summary : string ;
1011 meta_data : object ;
@@ -16,13 +17,15 @@ function parseDataset(dataset: string|object) : SelectedFolder|null {
1617 const {
1718 id,
1819 name,
20+ created_at,
1921 last_modified_at,
2022 summary,
2123 meta_data,
2224 } = data ;
2325 return {
2426 id,
2527 name,
28+ created_at,
2629 last_modified_at,
2730 summary,
2831 meta_data,
@@ -159,6 +162,10 @@ export default function FinderFolderSelect(props) {
159162 < dt > { gettext ( "Details" ) } :</ dt >
160163 < dd > { selectedFolder . summary } </ dd >
161164 </ dl >
165+ < dl >
166+ < dt > { gettext ( "Created at" ) } :</ dt >
167+ < dd > { renderTimestamp ( selectedFolder . created_at ) } </ dd >
168+ </ dl >
162169 < dl >
163170 < dt > { gettext ( "Modified at" ) } :</ dt >
164171 < dd > { renderTimestamp ( selectedFolder . last_modified_at ) } </ dd >
Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ def as_dict(self, realm):
171171 'file_size' : self .file_size ,
172172 'sha1' : self .sha1 ,
173173 'mime_type' : self .mime_type ,
174+ 'created_at' : self .created_at .replace (microsecond = 0 , tzinfo = None ),
174175 'last_modified_at' : self .last_modified_at .replace (microsecond = 0 , tzinfo = None ),
175176 'summary' : self .summary ,
176177 'meta_data' : self .get_meta_data (),
Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ def as_dict(self, realm=None):
166166 'id' : self .id ,
167167 'name' : self .name ,
168168 'has_subfolders' : self .subfolders .exists (),
169+ 'created_at' : self .created_at .replace (microsecond = 0 , tzinfo = None ),
169170 'last_modified_at' : self .last_modified_at .replace (microsecond = 0 , tzinfo = None ),
170171 'summary' : self .summary ,
171172 'meta_data' : self .get_meta_data (),
You can’t perform that action at this time.
0 commit comments