[pve-devel] [PATCH pve-manager 2/2] disable console button for templates

Emmanuel Kasper e.kasper at proxmox.com
Thu Mar 24 13:37:03 CET 2016


---
 www/manager6/qemu/Config.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/manager6/qemu/Config.js b/www/manager6/qemu/Config.js
index dce4792..7b1ebb7 100644
--- a/www/manager6/qemu/Config.js
+++ b/www/manager6/qemu/Config.js
@@ -244,6 +244,7 @@ Ext.define('PVE.qemu.Config', {
 	    shutdownBtn.setDisabled(!caps.vms['VM.PowerMgmt'] || status !== 'running');
 	    stopBtn.setDisabled(!caps.vms['VM.PowerMgmt'] || status === 'stopped');
 	    removeBtn.setDisabled(!caps.vms['VM.Allocate'] || status !== 'stopped');
+	    consoleBtn.setDisabled(template);
 	});
 
 	me.on('afterrender', function() {
-- 
2.1.4





More information about the pve-devel mailing list