]> git.proxmox.com Git - pve-manager.git/commit
ui: ceph pool edit: rework with controller and formulas
authorAaron Lauterer <a.lauterer@proxmox.com>
Fri, 29 Sep 2023 13:02:03 +0000 (15:02 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 21 Nov 2023 13:39:28 +0000 (14:39 +0100)
commitcfcb74ab969143bfe457fe951303939cc8f633a0
treea3ba477c0cc9a57f801e240fa3dbac4eb7d22438
parentb555a412089fbbc6864d0577cc0d012a251223ce
ui: ceph pool edit: rework with controller and formulas

instead of relying purely on listeners that then manually change other
components, we can use binds, formulas and a basic controller.

This makes it quite a bit easier to let multiple components react to
changes.

A cbind is used for the size component to set the initial start value.
Other options, like using setValue in the controller init, will trigger
the change listener and therefore can affect the min size without any
user interaction.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Tested-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/ceph/Pool.js