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