mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-26 10:16:10 +01:00
This commit is contained in:
parent
94ee72b5d3
commit
2d14180287
1 changed files with 1 additions and 11 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue