Commit 09c45d10 authored by Alen Grizonic's avatar Alen Grizonic Committed by Dietmar Maurer

GUI option for VM protection added

v2 changes:

GUI option for CT protection added
parent c6b65954
......@@ -121,6 +121,23 @@ Ext.define('PVE.lxc.Options', {
fieldLabel: gettext('Console mode')
}
} : undefined
},
protection: {
header: gettext('CT protection'),
defaultValue: false,
renderer: PVE.Utils.format_boolean,
editor: caps.vms['VM.Config.Options'] ? {
xtype: 'pveWindowEdit',
subject: gettext('CT protection'),
items: {
xtype: 'pvecheckbox',
name: 'protection',
uncheckedValue: 0,
defaultValue: 0,
deleteDefaultValue: true,
fieldLabel: gettext('Enabled')
}
} : undefined
}
};
......
......@@ -237,6 +237,23 @@ Ext.define('PVE.qemu.Options', {
header: gettext('SMBIOS settings (type1)'),
defaultValue: '',
editor: caps.vms['VM.Config.HWType'] ? 'PVE.qemu.Smbios1Edit' : undefined
},
protection: {
header: gettext('VM protection'),
defaultValue: false,
renderer: PVE.Utils.format_boolean,
editor: caps.vms['VM.Config.Options'] ? {
xtype: 'pveWindowEdit',
subject: gettext('VM protection'),
items: {
xtype: 'pvecheckbox',
name: 'protection',
uncheckedValue: 0,
defaultValue: 0,
deleteDefaultValue: true,
fieldLabel: gettext('Enabled')
}
} : undefined
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment