]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/Utils.js
gui: Utils: add propertyString helper
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 31 Oct 2019 08:33:42 +0000 (09:33 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 6 Nov 2019 20:12:35 +0000 (21:12 +0100)
commit49dfba72c836971691a09e7755f21e0c45a195c8
treed48c30d7db010e67da3d6b9c26b1bd58312cdbc1
parent69f36699b6b9ec840ede0daec430d37f9ce64bec
gui: Utils: add propertyString helper

this helper conditionally sets the given value to the given property
on the given object, optionally a different value

this is useful for our MP/HD Edit panels, where we set the options
of the drive/mp this way for every gui option we have

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