disable console button for templates

This commit is contained in:
Emmanuel Kasper 2016-03-24 13:37:03 +01:00 committed by Dietmar Maurer
parent fe64be90d2
commit 4365549dfa

View File

@ -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() {