mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
6b79e543a4
commit
05a78c7cea
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue