]> git.proxmox.com Git - pve-manager.git/commit
ui: fire config change: always pass required parameters
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 10 Mar 2023 14:38:17 +0000 (15:38 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 10 Mar 2023 14:38:21 +0000 (15:38 +0100)
commit4aa70a6b3a5291b1a3d61d09e5b8578c6b52bbfc
tree8727617e2b6c82a27cf364db450589f96a14b7d2
parente98edb4c375e5d9418129919a2ca9071045ddd8b
ui: fire config change: always pass required parameters

As otherwise the listeners might choke on the missing records.

For our usage it was only a problem when one changed the tree UI
options while having the Datacenter -> Summary panel open, as that
listens to the UI changes to adapt the shown gauges for e.g., memory,
storage, or CPUs, and thus actually uses the current result (unlike
we do in the store load listener).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/UIOptions.js
www/manager6/data/ResourceStore.js