add qemu agent gui option

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2015-11-23 14:39:16 +01:00 committed by Dietmar Maurer
parent 4345456e80
commit 0b19ac6f8d

View File

@ -238,6 +238,23 @@ Ext.define('PVE.qemu.Options', {
defaultValue: '',
editor: caps.vms['VM.Config.HWType'] ? 'PVE.qemu.Smbios1Edit' : undefined
},
agent: {
header: gettext('Qemu Agent'),
defaultValue: false,
renderer: PVE.Utils.format_boolean,
editor: caps.vms['VM.Config.Options'] ? {
xtype: 'pveWindowEdit',
subject: gettext('Qemu Agent'),
items: {
xtype: 'pvecheckbox',
name: 'agent',
uncheckedValue: 0,
defaultValue: 0,
deleteDefaultValue: true,
fieldLabel: gettext('Enabled')
}
} : undefined
},
protection: {
header: gettext('VM protection'),
defaultValue: false,