mirror of
https://github.com/zadam/trilium.git
synced 2025-02-23 06:26:31 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
c3fabcb666
1 changed files with 4 additions and 2 deletions
|
@ -209,9 +209,11 @@ function BackendScriptApi(currentNote, apiParams) {
|
||||||
* @returns {Promise<{note: Note, branch: Branch}>} object contains newly created entities note and branch
|
* @returns {Promise<{note: Note, branch: Branch}>} object contains newly created entities note and branch
|
||||||
*/
|
*/
|
||||||
this.createNoteAndRefresh = async function(parentNoteId, title, content, extraOptions) {
|
this.createNoteAndRefresh = async function(parentNoteId, title, content, extraOptions) {
|
||||||
await noteService.createNote(parentNoteId, title, content, extraOptions);
|
const note = await noteService.createNote(parentNoteId, title, content, extraOptions);
|
||||||
|
|
||||||
ws.refreshTree();
|
ws.refreshTree();
|
||||||
|
|
||||||
|
return note;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue