feat(react/floating_buttons): port save to note button

This commit is contained in:
Elian Doran
2025-08-27 23:14:25 +03:00
parent 08db03800e
commit 2085d1bbba
4 changed files with 30 additions and 25 deletions

View File

@@ -10,7 +10,7 @@ import SearchContext from "./search/search_context.js";
import { LBTPL_NOTE_LAUNCHER, LBTPL_CUSTOM_WIDGET, LBTPL_SPACER, LBTPL_SCRIPT } from "./hidden_subtree.js";
import { t } from "i18next";
import { BNote } from "./backend_script_entrypoint.js";
import { SaveSearchNoteResponse } from "@triliumnext/commons";
import { SaveSearchNoteResponse, SaveSqlConsoleResponse } from "@triliumnext/commons";
function getInboxNote(date: string) {
const workspaceNote = hoistedNoteService.getWorkspaceNote();
@@ -67,7 +67,7 @@ async function saveSqlConsole(sqlConsoleNoteId: string) {
}
}
return result;
return result satisfies SaveSqlConsoleResponse;
}
function createSearchNote(searchString: string, ancestorNoteId: string) {