aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/DocUtils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/documents/DocUtils.ts')
-rw-r--r--src/client/documents/DocUtils.ts13
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,