mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-23 18:53:36 +02:00
This commit is contained in:
parent
2488dd3806
commit
6f76fe728f
@ -56,5 +56,4 @@ describe('renderViewProps', () => {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -14,11 +14,11 @@ export interface RenderViewPropsOptions {
|
|||||||
|
|
||||||
const renderViewProp = (name: ListRendererDependency, value: any, options: RenderViewPropsOptions) => {
|
const renderViewProp = (name: ListRendererDependency, value: any, options: RenderViewPropsOptions) => {
|
||||||
const renderers: Partial<Record<ListRendererDependency, ()=> string>> = {
|
const renderers: Partial<Record<ListRendererDependency, ()=> string>> = {
|
||||||
'note.user_updated_time': () => time.unixMsToLocalDateTime(value),
|
'note.user_updated_time': () => time.formatMsToLocal(value),
|
||||||
'note.user_created_time': () => time.unixMsToLocalDateTime(value),
|
'note.user_created_time': () => time.formatMsToLocal(value),
|
||||||
'note.updated_time': () => time.unixMsToLocalDateTime(value),
|
'note.updated_time': () => time.formatMsToLocal(value),
|
||||||
'note.created_time': () => time.unixMsToLocalDateTime(value),
|
'note.created_time': () => time.formatMsToLocal(value),
|
||||||
'note.todo_completed': () => value ? time.unixMsToLocalDateTime(value) : '',
|
'note.todo_completed': () => value ? time.formatMsToLocal(value) : '',
|
||||||
'note.tags': () => value ? value.map((t: TagEntity) => t.title).join(', ') : '',
|
'note.tags': () => value ? value.map((t: TagEntity) => t.title).join(', ') : '',
|
||||||
'note.title': () => options.noteTitleHtml,
|
'note.title': () => options.noteTitleHtml,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user