Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:memo:

Vanessad573e62d1209
diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts
index 7b0141a531..8e1dc4516b 100644
--- a/app/src/protyle/breadcrumb/index.ts
+++ b/app/src/protyle/breadcrumb/index.ts
@@ -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});
})
}
diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index 967ffad690..59a1e7b18f 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -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();
});