Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/9598

Vanessa2d141802877b
diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts
index e78cdcb46c..e5f727f710 100644
--- a/app/src/protyle/breadcrumb/index.ts
+++ b/app/src/protyle/breadcrumb/index.ts
@@ -447,7 +447,7 @@ export class Breadcrumb {
type: "submenu",
submenu: [{
iconHTML: "",
- current: isCustomReadonly === "true",
+ current: !isCustomReadonly || isCustomReadonly === "true",
label: window.siyuan.languages.enable,
click() {
fetchPost("/api/attr/setBlockAttrs", {
@@ -465,16 +465,6 @@ export class Breadcrumb {
attrs: {[Constants.CUSTOM_SY_READONLY]: "false"}
});
}
- }, {
- iconHTML: "",
- current: !isCustomReadonly,
- label: window.siyuan.languages.default,
- click() {
- fetchPost("/api/attr/setBlockAttrs", {
- id: protyle.block.rootID,
- attrs: {[Constants.CUSTOM_SY_READONLY]: ""}
- });
- }
}]
}).element);
}