Commit 2db45416 authored by Dietmar Maurer's avatar Dietmar Maurer

use 'Full/Linked Clone' consistently

parent 95e3075a
...@@ -17,7 +17,7 @@ Ext.define('PVE.window.Clone', { ...@@ -17,7 +17,7 @@ Ext.define('PVE.window.Clone', {
params.name = name; params.name = name;
} }
if (clonemode === 'copy') { if (clonemode === 'full') {
params.full = 1; params.full = 1;
if (storage) { if (storage) {
params.storage = storage; params.storage = storage;
...@@ -46,17 +46,17 @@ Ext.define('PVE.window.Clone', { ...@@ -46,17 +46,17 @@ Ext.define('PVE.window.Clone', {
compute_sel1: function(clonefeature, istemplate, snapname) { compute_sel1: function(clonefeature, istemplate, snapname) {
var me = this; var me = this;
var list = []; var list = [];
list.push(['copy', 'Copy Clone']); list.push(['full', 'Full Clone']);
if((clonefeature && istemplate === 1 && snapname === 'current') || (clonefeature && !istemplate && snapname !== 'current')){ if((clonefeature && istemplate === 1 && snapname === 'current') || (clonefeature && !istemplate && snapname !== 'current')){
list.push(['clone', 'Linked Clone']); list.push(['linked', 'Linked Clone']);
} }
me.kv1.store.loadData(list); me.kv1.store.loadData(list);
if((clonefeature && istemplate === 1 && snapname === 'current') || (clonefeature && !istemplate && snapname !== 'current')){ if((clonefeature && istemplate === 1 && snapname === 'current') || (clonefeature && !istemplate && snapname !== 'current')){
me.kv1.setValue('clone'); me.kv1.setValue('linked');
}else{ }else{
me.kv1.setValue('copy'); me.kv1.setValue('full');
} }
}, },
...@@ -179,7 +179,7 @@ Ext.define('PVE.window.Clone', { ...@@ -179,7 +179,7 @@ Ext.define('PVE.window.Clone', {
}); });
me.mon(me.kv1, 'change', function(t, value) { me.mon(me.kv1, 'change', function(t, value) {
if (value === 'copy') { if (value === 'full') {
me.hdstoragesel.setDisabled(false); me.hdstoragesel.setDisabled(false);
}else{ }else{
me.hdstoragesel.setDisabled(true); me.hdstoragesel.setDisabled(true);
......
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