[pve-devel] [RFC pve-manager] GUI option for VM protection added

Alen Grizonic a.grizonic at proxmox.com
Thu Sep 3 12:18:46 CEST 2015


---
 www/manager/qemu/Options.js | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

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