Commit b4fd23b7 authored by Dietmar Maurer's avatar Dietmar Maurer

add pool selector to PVE.qemu.CreateWizard

parent 399d4138
......@@ -170,7 +170,7 @@ __PACKAGE__->register_method ({
if $usercfg->{vms}->{$vmid};
$data->{vms}->{$vmid} = 1;
$usercfg->{vms}->{$vmid} = 1;
$usercfg->{vms}->{$vmid} = $pool;
}
}
}
......
......@@ -70,10 +70,22 @@ Ext.define('PVE.qemu.CreateWizard', {
allowBlank: true
}
],
column2: [
{
xtype: 'pvePoolSelector',
fieldLabel: gettext('Resource Pool'),
name: 'pool',
value: '',
allowBlank: true
},
],
onGetValues: function(values) {
if (!values.name) {
delete values.name;
}
if (!values.pool) {
delete values.pool;
}
return values;
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment