added new "create note" button

This commit is contained in:
zadam
2020-11-27 22:21:13 +01:00
parent 2a54ce803e
commit b0217ee04c
7 changed files with 31 additions and 9 deletions

View File

@@ -62,14 +62,14 @@ export default class Entrypoints extends Component {
findInPage.openFindWindow();
}
async createNoteIntoDayNoteCommand() {
const todayNote = await dateNoteService.getTodayNote();
async createNoteIntoInboxCommand() {
const inboxNote = await dateNoteService.getInboxNote();
const {note} = await server.post(`notes/${todayNote.noteId}/children?target=into`, {
const {note} = await server.post(`notes/${inboxNote.noteId}/children?target=into`, {
title: 'new note',
content: '',
type: 'text',
isProtected: todayNote.isProtected
isProtected: inboxNote.isProtected
});
await ws.waitForMaxKnownEntityChangeId();