Skip to content

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

:sparkles: Expose mind map lock state for themes https://github.com/siyuan-note/siyuan/issues/19924

Daniel169d0ad90a4d
diff --git a/app/src/protyle/render/listMindmap/view.ts b/app/src/protyle/render/listMindmap/view.ts
index 51b25b238c..3917d50f47 100644
--- a/app/src/protyle/render/listMindmap/view.ts
+++ b/app/src/protyle/render/listMindmap/view.ts
@@ -464,6 +464,7 @@ export class ListMindmapView {
}).catch(error => console.error(error)).finally(() => button.disabled = false);
});
this.buttons.get("lock").setAttribute("aria-pressed", String(this.locked));
+ this.buttons.get("lock").setAttribute("data-subtype", this.locked ? "lock" : "unlock");
if (this.locked) {
add("fullscreen", "fullscreen", "iconFullscreen", () => this.toggleFullscreen());
return;