diff options
author | aaravkumar <aarav.kumar1510@gmail.com> | 2025-03-06 13:42:53 -0500 |
---|---|---|
committer | aaravkumar <aarav.kumar1510@gmail.com> | 2025-03-06 13:42:53 -0500 |
commit | 980d7d9f747b1ee0ca0ad86df18f98684de5b193 (patch) | |
tree | cbb3dcfbf60077fe1d1f8646d761ef905f37d236 /src/client/documents/DocUtils.ts | |
parent | 6b58fb76b11f21648ca2bc551f97b6e09e4be13b (diff) |
daily journal node
Diffstat (limited to 'src/client/documents/DocUtils.ts')
-rw-r--r-- | src/client/documents/DocUtils.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/client/documents/DocUtils.ts b/src/client/documents/DocUtils.ts index 23032b62e..5a39a9720 100644 --- a/src/client/documents/DocUtils.ts +++ b/src/client/documents/DocUtils.ts @@ -396,6 +396,19 @@ export namespace DocUtils { event: e => (DocumentView.Selected().lastElement().ComponentView as CollectionFreeFormView)?.showSmartDraw(e?.x || 0, e?.y || 0), icon: 'file', }); + + // AARAV ADD // + documentList.push({ + description: ':Daily Journal', + event: undoable(() => { + const newDoc = Docs.Create.DailyJournalDocument('', { x, y }); + docAdder?.(newDoc); + }, 'Create Daily Journal'), + icon: 'book', + }); + + // AARAV ADD // + ContextMenu.Instance.addItem({ description: 'Create document', subitems: documentList, |