reduce flicker of "create new day note"

This commit is contained in:
zadam
2019-11-24 21:40:50 +01:00
parent 3a54d00e2b
commit 6bbd4c59bc
8 changed files with 29 additions and 48 deletions

View File

@@ -220,17 +220,17 @@ function registerEntrypoints() {
}));
keyboardActionService.setGlobalActionHandler("CreateNoteIntoDayNote", async () => {
const todayNote = await dateNoteService.getTodayNote();console.log(todayNote);
const todayNote = await dateNoteService.getTodayNote();
const notePath = await treeService.getSomeNotePath(todayNote);
const node = await treeService.expandToNote(notePath);
await noteDetailService.openEmptyTab(false);
await treeService.createNote(node, todayNote.noteId, 'into', {
const {note} = await treeService.createNote(node, todayNote.noteId, 'into', {
type: "text",
isProtected: node.data.isProtected
});
await noteDetailService.openInTab(note.noteId, true);
});
keyboardActionService.setGlobalActionHandler("EditBranchPrefix", async () => {