mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
📝
This commit is contained in:
parent
67f6320c8a
commit
d573e62d12
2 changed files with 7 additions and 2 deletions
|
|
@ -253,7 +253,7 @@ export class Breadcrumb {
|
||||||
label: window.siyuan.languages.share2Liandi,
|
label: window.siyuan.languages.share2Liandi,
|
||||||
icon: "iconLiandi",
|
icon: "iconLiandi",
|
||||||
click() {
|
click() {
|
||||||
confirmDialog(window.siyuan.languages.share2Liandi, "", () => {
|
confirmDialog(window.siyuan.languages.share2Liandi, window.siyuan.languages.share2LiandiConfirmTip, () => {
|
||||||
fetchPost("/api/export/export2Liandi", {id: protyle.block.parentID});
|
fetchPost("/api/export/export2Liandi", {id: protyle.block.parentID});
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -773,10 +773,15 @@ const addConfigMoreMenu = async (config: ISearchOption, edit: Protyle, element:
|
||||||
saveDialog.destroy();
|
saveDialog.destroy();
|
||||||
});
|
});
|
||||||
btnsElement[1].addEventListener("click", () => {
|
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.k = (element.querySelector("#searchInput") as HTMLInputElement).value;
|
||||||
config.r = (element.querySelector("#replaceInput") as HTMLInputElement).value;
|
config.r = (element.querySelector("#replaceInput") as HTMLInputElement).value;
|
||||||
const criterion = config;
|
const criterion = config;
|
||||||
criterion.name = saveDialog.element.querySelector("input").value;
|
criterion.name = value;
|
||||||
fetchPost("/api/storage/setCriterion", {criterion}, () => {
|
fetchPost("/api/storage/setCriterion", {criterion}, () => {
|
||||||
saveDialog.destroy();
|
saveDialog.destroy();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue