[pve-devel] [RFC pve-manager v2] GUI option for VM protection added
Alen Grizonic
a.grizonic at proxmox.com
Thu Sep 3 16:59:30 CEST 2015
v2 changes:
GUI option for CT protection added
---
www/manager/lxc/Options.js | 17 +++++++++++++++++
www/manager/qemu/Options.js | 17 +++++++++++++++++
2 files changed, 34 insertions(+)
diff --git a/www/manager/lxc/Options.js b/www/manager/lxc/Options.js
index 998602d..8461514 100644
--- a/www/manager/lxc/Options.js
+++ b/www/manager/lxc/Options.js
@@ -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
}
};
diff --git a/www/manager/qemu/Options.js b/www/manager/qemu/Options.js
index 0d3e210..f5d0f80 100644
--- a/www/manager/qemu/Options.js
+++ b/www/manager/qemu/Options.js
@@ -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
}
};
--
2.1.4
More information about the pve-devel
mailing list