[pve-devel] [PATCH manager 9/9] correct qemu cmdMenu

Dominik Csapak d.csapak at proxmox.com
Mon Apr 11 10:19:08 CEST 2016


start button should be disabled when suspended

use 'file' icon instead of 'sticky-note'
to be consistent with tree icons

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

diff --git a/www/manager6/qemu/CmdMenu.js b/www/manager6/qemu/CmdMenu.js
index 195dc67..0869c91 100644
--- a/www/manager6/qemu/CmdMenu.js
+++ b/www/manager6/qemu/CmdMenu.js
@@ -49,7 +49,7 @@ Ext.define('PVE.qemu.CmdMenu', {
 	    {
 		text: gettext('Start'),
 		iconCls: 'fa fa-fw fa-play',
-		disabled: running,
+		disabled: running || suspended,
 		handler: function() {
 		    vm_command('start');
 		}
@@ -131,7 +131,7 @@ Ext.define('PVE.qemu.CmdMenu', {
 	    },
 	    {
 		text: gettext('Convert to template'),
-		iconCls: 'fa fa-fw fa-sticky-note-o',
+		iconCls: 'fa fa-fw fa-file-o',
 		handler: function() {
 		    var msg = PVE.Utils.format_task_description('qmtemplate', vmid);
 		    Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
-- 
2.1.4





More information about the pve-devel mailing list