fix LVM Content settings

when adding LVM Storage, do not overwrite user input for content
and if Storage and Container is selected
show the proper names

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2016-03-07 13:38:38 +01:00 committed by Dietmar Maurer
parent ee6e61009d
commit 89722698a9

View File

@ -97,7 +97,6 @@ Ext.define('PVE.storage.LVMInputPanel', {
if (me.create) {
values.type = 'lvm';
values.content = 'images';
} else {
delete values.storage;
}
@ -257,6 +256,10 @@ Ext.define('PVE.storage.LVMEdit', {
me.load({
success: function(response, options) {
var values = response.result.data;
var ctypes = values.content || '';
values.content = ctypes.split(',');
if (values.nodes) {
values.nodes = values.nodes.split(',');
}