diff --git a/packages/frontend/core/src/modules/at-menu-config/services/index.ts b/packages/frontend/core/src/modules/at-menu-config/services/index.ts index 4b9574fad9..e55c45205e 100644 --- a/packages/frontend/core/src/modules/at-menu-config/services/index.ts +++ b/packages/frontend/core/src/modules/at-menu-config/services/index.ts @@ -294,6 +294,10 @@ export class AtMenuConfigService extends Service { onSelect: date => { if (date) { onSelectDate(date); + track.doc.editor.atMenu.linkDoc({ + journal: true, + type: 'specific date', + }); this.dialogService.close(id); } }, @@ -328,6 +332,10 @@ export class AtMenuConfigService extends Service { >` : dateDisplay, action: () => { + track.doc.editor.atMenu.linkDoc({ + journal: true, + type: alias, + }); onSelectDate(dateString); }, }); diff --git a/packages/frontend/track/src/events.ts b/packages/frontend/track/src/events.ts index 20f102b22f..bf621d5ff0 100644 --- a/packages/frontend/track/src/events.ts +++ b/packages/frontend/track/src/events.ts @@ -26,7 +26,7 @@ type NavigationEvents = | 'open' | 'close'; // openclose modal/diaglog -// END SECTION +// END SECTIONalias // SECTION: doc events type WorkspaceEvents = @@ -430,6 +430,7 @@ export type EventArgs = { }; editProperty: { type: string }; addProperty: { type: string; control: 'at menu' | 'property list' }; + linkDoc: { type: string; journal: boolean }; }; // for type checking