mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-07-23 23:35:57 +02:00
Focus sub-notebook input from context menu (#150)
Focus the sub-notebook name field after choosing New Sub-notebook from a notebook context menu. Validation: pnpm build Reviewed-on: https://codeberg.org/ArkHost/HelixNotes/pulls/150
This commit is contained in:
@@ -257,7 +257,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function startNewSubNotebook(nb: NotebookEntry) {
|
async function startNewSubNotebook(nb: NotebookEntry) {
|
||||||
contextMenu = null;
|
contextMenu = null;
|
||||||
newNotebookParent = nb;
|
newNotebookParent = nb;
|
||||||
newNotebookName = '';
|
newNotebookName = '';
|
||||||
@@ -266,6 +266,7 @@
|
|||||||
if ($collapsedNotebooks.includes(nb.path)) {
|
if ($collapsedNotebooks.includes(nb.path)) {
|
||||||
$collapsedNotebooks = $collapsedNotebooks.filter(p => p !== nb.path);
|
$collapsedNotebooks = $collapsedNotebooks.filter(p => p !== nb.path);
|
||||||
}
|
}
|
||||||
|
await focusNewNotebookInput();
|
||||||
}
|
}
|
||||||
|
|
||||||
async function handleRename(nb: NotebookEntry) {
|
async function handleRename(nb: NotebookEntry) {
|
||||||
|
|||||||
Reference in New Issue
Block a user