mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-04-23 04:53:26 -05:00
provide note dates in the frontend API, fixes #4232
This commit is contained in:
@@ -970,6 +970,10 @@ class FNote {
|
||||
isOptions() {
|
||||
return this.noteId.startsWith("_options");
|
||||
}
|
||||
|
||||
async getMetadata() {
|
||||
return await server.get(`notes/${this.noteId}/metadata`);
|
||||
}
|
||||
}
|
||||
|
||||
export default FNote;
|
||||
|
||||
@@ -128,8 +128,8 @@ export default class NoteInfoWidget extends NoteContextAwareWidget {
|
||||
.attr("title", metadata.dateCreated);
|
||||
|
||||
this.$dateModified
|
||||
.text(metadata.combinedDateModified.substr(0, 16))
|
||||
.attr("title", metadata.combinedDateModified);
|
||||
.text(metadata.dateModified.substr(0, 16))
|
||||
.attr("title", metadata.dateModified);
|
||||
|
||||
this.$type.text(note.type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user