[pve-devel] [PATCH manager] ui: resource tree: add collapse/expand all button

Dominik Csapak d.csapak at proxmox.com
Tue Nov 19 10:36:47 CET 2024


On 11/19/24 10:30, Thomas Lamprecht wrote:
> Am 19.11.24 um 10:22 schrieb Dominik Csapak:
>> which defaults to expand all, and only if all expanded, collapse all.
>>
>> Changes icon dynamically when nodes expand/collapse.
>>
>> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
>> ---
>> if we'd find an icon that would fit for both cases, we could omit the
>> event bubbling probably. If there are many nodes, the 'hasCollapsed'
>> check will trigger more often, iterating over all tree nodes..
> 
> We could also just do two separate buttons, FWIW.

true, but the space there is already a bit limited IMO, and
only one of the buttons makes sense at one point in time




More information about the pve-devel mailing list