Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/15429

Vanessa05a78c7cea7a
diff --git a/app/src/protyle/render/av/groups.ts b/app/src/protyle/render/av/groups.ts
index 88c546fd18..09aba4580a 100644
--- a/app/src/protyle/render/av/groups.ts
+++ b/app/src/protyle/render/av/groups.ts
@@ -198,9 +198,9 @@ export const getGroupsHTML = (columns: IAVColumn[], view: IAVView) => {
<button class="b3-menu__item" data-type="nobg">
<span class="b3-menu__label"></span>
<span class="block__icon" data-type="hideGroups">
- ${window.siyuan.languages[showCount <= view.groups.length ? "hideAll" : "showAll"]}
+ ${window.siyuan.languages[showCount === 0 ? "showAll" : "hideAll"]}
<span class="fn__space"></span>
- <svg><use xlink:href="#iconEye${showCount <= view.groups.length ? "off" : ""}"></use></svg>
+ <svg><use xlink:href="#iconEye${showCount === 0 ? "" : "off"}"></use></svg>
</span>
</button>` + groupHTML;
}
diff --git a/app/src/protyle/render/av/openMenuPanel.ts b/app/src/protyle/render/av/openMenuPanel.ts
index bb4579f69c..cbd237fb39 100644
--- a/app/src/protyle/render/av/openMenuPanel.ts
+++ b/app/src/protyle/render/av/openMenuPanel.ts
@@ -1565,9 +1565,9 @@ export const openMenuPanel = (options: {
showCount++;
}
});
- menuElement.querySelector('[data-type="hideGroups"]').innerHTML = `${window.siyuan.languages[showCount <= data.view.groups.length ? "hideAll" : "showAll"]}
+ menuElement.querySelector('[data-type="hideGroups"]').innerHTML = `${window.siyuan.languages[showCount === 0 ? "showAll" : "hideAll"]}
<span class="fn__space"></span>
-<svg><use xlink:href="#iconEye${showCount <= data.view.groups.length ? "off" : ""}"></use></svg>`;
+<svg><use xlink:href="#iconEye${showCount === 0 ? "" : "off"}"></use></svg>`;
transaction(options.protyle, [{
action: "hideAttrViewGroup",
avID: data.id,