This commit is contained in:
Vanessa 2023-11-27 17:05:39 +08:00
parent 94ee72b5d3
commit 2d14180287

View file

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