[pve-devel] [PATCH manager 1/4] hide snapshot tab with qemu templates

Dominik Csapak d.csapak at proxmox.com
Wed Jun 1 16:17:05 CEST 2016


since we cannot create templates with existing snapshots,
and we cannot take snapshots of templates, showing
the tab on templates makes no sense

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/qemu/Config.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/qemu/Config.js b/www/manager6/qemu/Config.js
index 8b764b0..25f91ff 100644
--- a/www/manager6/qemu/Config.js
+++ b/www/manager6/qemu/Config.js
@@ -175,7 +175,7 @@ Ext.define('PVE.qemu.Config', {
 	    });
 	}
 
-	if (caps.vms['VM.Snapshot']) {
+	if (caps.vms['VM.Snapshot'] && !template) {
 	    me.items.push({
 		title: gettext('Snapshots'),
 		xtype: 'pveQemuSnapshotTree',
-- 
2.1.4





More information about the pve-devel mailing list