mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
fix: wrong dates in “Note Revisions” view
This commit is contained in:
@@ -140,11 +140,11 @@ function RevisionsList({ revisions, onSelect, currentRevision }: { revisions: Re
|
|||||||
<FormList onSelect={onSelect} fullHeight>
|
<FormList onSelect={onSelect} fullHeight>
|
||||||
{revisions.map((item) =>
|
{revisions.map((item) =>
|
||||||
<FormListItem
|
<FormListItem
|
||||||
title={t("revisions.revision_last_edited", { date: item.dateLastEdited })}
|
title={t("revisions.revision_last_edited", { date: item.dateCreated })}
|
||||||
value={item.revisionId}
|
value={item.revisionId}
|
||||||
active={currentRevision && item.revisionId === currentRevision.revisionId}
|
active={currentRevision && item.revisionId === currentRevision.revisionId}
|
||||||
>
|
>
|
||||||
{item.dateLastEdited && item.dateLastEdited.substr(0, 16)} ({item.contentLength && utils.formatSize(item.contentLength)})
|
{item.dateCreated && item.dateCreated.substr(0, 16)} ({item.contentLength && utils.formatSize(item.contentLength)})
|
||||||
</FormListItem>
|
</FormListItem>
|
||||||
)}
|
)}
|
||||||
</FormList>);
|
</FormList>);
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export interface DeleteNotesPreview {
|
|||||||
export interface RevisionItem {
|
export interface RevisionItem {
|
||||||
noteId: string;
|
noteId: string;
|
||||||
revisionId?: string;
|
revisionId?: string;
|
||||||
dateLastEdited?: string;
|
dateCreated?: string;
|
||||||
contentLength?: number;
|
contentLength?: number;
|
||||||
type: NoteType;
|
type: NoteType;
|
||||||
title: string;
|
title: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user