Commit 95e3075a authored by Dietmar Maurer's avatar Dietmar Maurer

clone: make name optional

parent 156c9ed6
......@@ -7,12 +7,16 @@ Ext.define('PVE.window.Clone', {
create_clone: function(snapname, name, newvmid, clonemode, storage, format, diskarray) {
var me = this;
var params = { name: name, newid: newvmid };
var params = { newid: newvmid };
if (snapname && snapname !== 'current') {
params.snapname = snapname;
}
if (name) {
params.name = name;
}
if (clonemode === 'copy') {
params.full = 1;
if (storage) {
......@@ -122,7 +126,7 @@ Ext.define('PVE.window.Clone', {
{
xtype: 'textfield',
name: 'name',
allowBlank: false,
allowBlank: true,
fieldLabel: 'Name'
}
);
......
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