mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-02 07:24:14 +03:00
parent
30d6793978
commit
fea4777ef2
@ -294,6 +294,10 @@ export class AtMenuConfigService extends Service {
|
|||||||
onSelect: date => {
|
onSelect: date => {
|
||||||
if (date) {
|
if (date) {
|
||||||
onSelectDate(date);
|
onSelectDate(date);
|
||||||
|
track.doc.editor.atMenu.linkDoc({
|
||||||
|
journal: true,
|
||||||
|
type: 'specific date',
|
||||||
|
});
|
||||||
this.dialogService.close(id);
|
this.dialogService.close(id);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -328,6 +332,10 @@ export class AtMenuConfigService extends Service {
|
|||||||
>`
|
>`
|
||||||
: dateDisplay,
|
: dateDisplay,
|
||||||
action: () => {
|
action: () => {
|
||||||
|
track.doc.editor.atMenu.linkDoc({
|
||||||
|
journal: true,
|
||||||
|
type: alias,
|
||||||
|
});
|
||||||
onSelectDate(dateString);
|
onSelectDate(dateString);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -26,7 +26,7 @@ type NavigationEvents =
|
|||||||
| 'open'
|
| 'open'
|
||||||
| 'close'; // openclose modal/diaglog
|
| 'close'; // openclose modal/diaglog
|
||||||
|
|
||||||
// END SECTION
|
// END SECTIONalias
|
||||||
|
|
||||||
// SECTION: doc events
|
// SECTION: doc events
|
||||||
type WorkspaceEvents =
|
type WorkspaceEvents =
|
||||||
@ -430,6 +430,7 @@ export type EventArgs = {
|
|||||||
};
|
};
|
||||||
editProperty: { type: string };
|
editProperty: { type: string };
|
||||||
addProperty: { type: string; control: 'at menu' | 'property list' };
|
addProperty: { type: string; control: 'at menu' | 'property list' };
|
||||||
|
linkDoc: { type: string; journal: boolean };
|
||||||
};
|
};
|
||||||
|
|
||||||
// for type checking
|
// for type checking
|
||||||
|
Loading…
Reference in New Issue
Block a user