mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 05:30:46 +08:00
Count manual canvas NE badges from view membership, not only fabric region ownership.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
1373eff4ab
commit
3d86bc7594
2 changed files with 37 additions and 13 deletions
|
|
@ -314,9 +314,8 @@ function primaryTreeView(
|
|||
}
|
||||
|
||||
/**
|
||||
* Directory NE badge from API: fabric inventory under the folder.
|
||||
* UME World / World / 世界地图 share the UME total; manual 根/根图 use their own
|
||||
* subtree (empty → 0). Region folders themselves never count as NEs.
|
||||
* Directory NE badge from API.
|
||||
* Manual canvases count view membership (placed NEs); UME World surfaces use inventory.
|
||||
*/
|
||||
function folderNeCount(folder: TopologyTreeFolderItem | null | undefined): number {
|
||||
if (!folder) return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue