[pve-devel] [PATCH manager 7/9] Do not show a Clone Mode selection Window for non-templates clones

Emmanuel Kasper e.kasper at proxmox.com
Thu Jan 12 10:14:00 CET 2017


As Non-templates clones are always a full clone.
---
 www/manager6/qemu/Clone.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/manager6/qemu/Clone.js b/www/manager6/qemu/Clone.js
index 3b3577e..af088b2 100644
--- a/www/manager6/qemu/Clone.js
+++ b/www/manager6/qemu/Clone.js
@@ -169,6 +169,7 @@ Ext.define('PVE.window.Clone', {
             fieldLabel: gettext('Mode'),
             name: 'clonemode',
             allowBlank: false,
+            hidden: !me.isTemplate,
 	    value: me.isTemplate ? 'clone' : 'copy',
             comboItems: modelist
         });
-- 
2.1.4





More information about the pve-devel mailing list