Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix note placement from "create top level note"
azivneree54dc34639b
diff --git a/src/public/javascripts/services/tree.js b/src/public/javascripts/services/tree.jsindex 2a501e919e..3d47d05d71 100644--- a/src/public/javascripts/services/tree.js+++ b/src/public/javascripts/services/tree.js@@ -441,7 +441,7 @@ async function setNoteTitle(noteId, title) {}async function createNewTopLevelNote() {- const rootNode = $tree.fancytree("getRootNode");+ const rootNode = getNodesByNoteId('root')[0];await createNote(rootNode, "root", "into");}diff --git a/src/views/index.ejs b/src/views/index.ejsindex d441f17116..07cfe63bd5 100644--- a/src/views/index.ejs+++ b/src/views/index.ejs@@ -54,13 +54,13 @@<a id="create-top-level-note-button" title="Create new top level note" class="icon-action"style="background: url('/images/icons/file-plus-24.png')"></a>- <a id="collapse-tree-button" title="Collapse note tree" class="icon-action"+ <a id="collapse-tree-button" title="Collapse note tree. Shortcut ALT+C" class="icon-action"style="background: url('/images/icons/list-24.png')"></a><a id="scroll-to-current-note-button" title="Scroll to current note. Shortcut CTRL+." class="icon-action"style="background: url('/images/icons/crosshair-24.png')"></a>- <a id="toggle-search-button" title="Search in notes" class="icon-action"+ <a id="toggle-search-button" title="Search in notes. Shortcut CTRL+S" class="icon-action"style="background: url('/images/icons/search-24.png')"></a></div>