diff --git a/src/public/app/services/date_notes.js b/src/public/app/services/date_notes.js
index f786487d6..d31273ad0 100644
--- a/src/public/app/services/date_notes.js
+++ b/src/public/app/services/date_notes.js
@@ -1,6 +1,13 @@
import treeCache from "./tree_cache.js";
import server from "./server.js";
+/** @return {NoteShort} */
+async function getInboxNote() {
+ const note = await server.get('date-notes/inbox/' + dayjs().format("YYYY-MM-DD"), "date-note");
+
+ return await treeCache.getNote(note.noteId);
+}
+
/** @return {NoteShort} */
async function getTodayNote() {
return await getDateNote(dayjs().format("YYYY-MM-DD"));
@@ -42,6 +49,7 @@ async function createSearchNote() {
}
export default {
+ getInboxNote,
getTodayNote,
getDateNote,
getMonthNote,
diff --git a/src/public/app/services/entrypoints.js b/src/public/app/services/entrypoints.js
index 0202c37ee..755673b20 100644
--- a/src/public/app/services/entrypoints.js
+++ b/src/public/app/services/entrypoints.js
@@ -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();
diff --git a/src/public/app/widgets/standard_top_widget.js b/src/public/app/widgets/standard_top_widget.js
index 30dfdd900..ee18e22f9 100644
--- a/src/public/app/widgets/standard_top_widget.js
+++ b/src/public/app/widgets/standard_top_widget.js
@@ -34,17 +34,22 @@ const TPL = `
-