This commit is contained in:
Vanessa 2023-01-04 14:34:12 +08:00
parent 67f6320c8a
commit d573e62d12
2 changed files with 7 additions and 2 deletions

View file

@ -253,7 +253,7 @@ export class Breadcrumb {
label: window.siyuan.languages.share2Liandi,
icon: "iconLiandi",
click() {
confirmDialog(window.siyuan.languages.share2Liandi, "", () => {
confirmDialog(window.siyuan.languages.share2Liandi, window.siyuan.languages.share2LiandiConfirmTip, () => {
fetchPost("/api/export/export2Liandi", {id: protyle.block.parentID});
})
}

View file

@ -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();
});