]> git.proxmox.com Git - pve-manager.git/commit
optimize resourcestore field collection
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 3 May 2017 15:04:28 +0000 (17:04 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 4 May 2017 04:59:54 +0000 (06:59 +0200)
commit2abb517fcc3af49878e0518f6cbdcba233d1dada
tree69ee458b4df5d83774d618f540cfa285e7f34225
parentec8273637d4595c044eb8dbca58057a0570b6e1c
optimize resourcestore field collection

instead of doing weird if/elsif checks with nonsensical logic

we simply check the 3 properties we want (namely convert,calculate and
defaultValue) and add them to our field definition.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/data/ResourceStore.js