mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 14:12:34 +01:00
📝
This commit is contained in:
parent
67f6320c8a
commit
d573e62d12
2 changed files with 7 additions and 2 deletions
|
|
@ -773,10 +773,15 @@ const addConfigMoreMenu = async (config: ISearchOption, edit: Protyle, element:
|
|||
saveDialog.destroy();
|
||||
});
|
||||
btnsElement[1].addEventListener("click", () => {
|
||||
const value = saveDialog.element.querySelector("input").value
|
||||
if (!value) {
|
||||
showMessage(window.siyuan.languages.value);
|
||||
return;
|
||||
}
|
||||
config.k = (element.querySelector("#searchInput") as HTMLInputElement).value;
|
||||
config.r = (element.querySelector("#replaceInput") as HTMLInputElement).value;
|
||||
const criterion = config;
|
||||
criterion.name = saveDialog.element.querySelector("input").value;
|
||||
criterion.name = value;
|
||||
fetchPost("/api/storage/setCriterion", {criterion}, () => {
|
||||
saveDialog.destroy();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue