[pve-devel] [PATCH manager v2 1/1] ui: make vmstatestorage configureable

Dominik Csapak d.csapak at proxmox.com
Mon Dec 9 15:27:02 CET 2019


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
new in v2
 www/manager6/qemu/Options.js | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/www/manager6/qemu/Options.js b/www/manager6/qemu/Options.js
index e6f279c8..da61a6a8 100644
--- a/www/manager6/qemu/Options.js
+++ b/www/manager6/qemu/Options.js
@@ -296,6 +296,27 @@ Ext.define('PVE.qemu.Options', {
 		    }
 		} : undefined
 	    },
+	    vmstatestorage: {
+		header: gettext('VM State storage'),
+		defaultValue: '',
+		renderer: val => val || gettext('Automatic'),
+		editor: caps.vms['VM.Config.Options'] ? {
+		    xtype: 'proxmoxWindowEdit',
+		    subject: gettext('VM State storage'),
+		    onlineHelp: 'qm_vmstatestorage',
+		    items: {
+			xtype: 'pveStorageSelector',
+			storageContent: 'images',
+			allowBlank: true,
+			emptyText: gettext('Automatic'),
+			autoSelect: false,
+			deleteEmpty: true,
+			skipEmptyText: true,
+			nodename: nodename,
+			name: 'vmstatestorage',
+		    }
+		} : undefined
+	    },
 	    hookscript: {
 		header: gettext('Hookscript')
 	    }
-- 
2.20.1




More information about the pve-devel mailing list