ui: make vmstatestorage configureable

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2019-12-09 15:27:02 +01:00 committed by Thomas Lamprecht
parent 8717893448
commit ab84ee7415

View File

@ -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')
}