]> git.proxmox.com Git - pve-manager.git/commit
ui: ProcessorEdit: fix total core calculation and use view model
authorStefan Reiter <s.reiter@proxmox.com>
Mon, 4 May 2020 10:58:41 +0000 (12:58 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 Jun 2020 13:51:11 +0000 (15:51 +0200)
commitb839766e7d31a6d691d8c602a00a2461d41fb9bb
tree1eebbbe5b48bab646d8fc1b62dc60799811caa47
parent01ac98c70294d3805aad3bb4bc57fe995eb3c22a
ui: ProcessorEdit: fix total core calculation and use view model

Clean up the code in ProcessorEdit with a view model and fix a bug while at
it - previously, pressing the 'Reset' button on the form would always set
the value of the total core count field to 1, so mark 'totalcores' with
'isFormField: false' to avoid reset.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
www/manager6/qemu/ProcessorEdit.js