From e4867d90a0cf560fc0df64cf93ca6930f58aa5e4 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 6 Jul 2018 08:05:48 +0200 Subject: [PATCH] ui: vm hotplug selector: refactor for sane formatting Signed-off-by: Thomas Lamprecht --- www/manager6/form/HotplugFeatureSelector.js | 33 +++++++++++++++++---- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/www/manager6/form/HotplugFeatureSelector.js b/www/manager6/form/HotplugFeatureSelector.js index cb373b694..348d970c6 100644 --- a/www/manager6/form/HotplugFeatureSelector.js +++ b/www/manager6/form/HotplugFeatureSelector.js @@ -4,12 +4,35 @@ Ext.define('PVE.form.HotplugFeatureSelector', { columns: 1, vertical: true, + + defaults: { + name: 'hotplug', + submitValue: false + }, items: [ - { boxLabel: gettext('Disk'), name: 'hotplug', inputValue: 'disk', submitValue: false, checked: true }, - { boxLabel: gettext('Network'), name: 'hotplug', inputValue: 'network',submitValue: false, checked: true }, - { boxLabel: 'USB', name: 'hotplug', inputValue: 'usb', submitValue: false, checked: true }, - { boxLabel: gettext('Memory'), name: 'hotplug', inputValue: 'memory', submitValue: false }, - { boxLabel: gettext('CPU'), name: 'hotplug', inputValue: 'cpu', submitValue: false } + { + boxLabel: gettext('Disk'), + inputValue: 'disk', + checked: true + }, + { + boxLabel: gettext('Network'), + inputValue: 'network', + checked: true + }, + { + boxLabel: 'USB', + inputValue: 'usb', + checked: true + }, + { + boxLabel: gettext('Memory'), + inputValue: 'memory' + }, + { + boxLabel: gettext('CPU'), + inputValue: 'cpu' + } ], setValue: function(value) {