[pve-devel] [PATCH manager 4/4] Set Console Button icon style at definition time

Emmanuel Kasper e.kasper at proxmox.com
Tue Dec 19 14:10:01 CET 2017


This will allow the 'Upgrade' button to get an icon too.

Signed-off-by: Emmanuel Kasper <e.kasper at proxmox.com>
---
 www/manager6/button/ConsoleButton.js | 2 ++
 www/manager6/lxc/Config.js           | 3 +--
 www/manager6/node/Config.js          | 3 +--
 www/manager6/qemu/Config.js          | 3 +--
 4 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/www/manager6/button/ConsoleButton.js b/www/manager6/button/ConsoleButton.js
index 635504f2..c5bb8276 100644
--- a/www/manager6/button/ConsoleButton.js
+++ b/www/manager6/button/ConsoleButton.js
@@ -6,6 +6,8 @@ Ext.define('PVE.button.ConsoleButton', {
 
     consoleName: undefined,
 
+    iconCls: 'fa fa-terminal',
+
     enableSpice: true,
 
     nodename: undefined,
diff --git a/www/manager6/lxc/Config.js b/www/manager6/lxc/Config.js
index bcff47ba..56dcb944 100644
--- a/www/manager6/lxc/Config.js
+++ b/www/manager6/lxc/Config.js
@@ -128,8 +128,7 @@ Ext.define('PVE.lxc.Config', {
 	    consoleType: 'lxc',
 	    consoleName: vm.name,
 	    nodename: nodename,
-	    vmid: vmid,
-	    iconCls: 'fa fa-terminal'
+	    vmid: vmid
 	});
 
 	Ext.apply(me, {
diff --git a/www/manager6/node/Config.js b/www/manager6/node/Config.js
index 4d6b51ef..1b1cc801 100644
--- a/www/manager6/node/Config.js
+++ b/www/manager6/node/Config.js
@@ -106,8 +106,7 @@ Ext.define('PVE.node.Config', {
 	    disabled: !caps.nodes['Sys.Console'],
 	    text: gettext('Shell'),
 	    consoleType: 'shell',
-	    nodename: nodename,
-		iconCls: 'fa fa-terminal'
+	    nodename: nodename
 	});
 
 	me.items = [];
diff --git a/www/manager6/qemu/Config.js b/www/manager6/qemu/Config.js
index db0f3152..68d5a268 100644
--- a/www/manager6/qemu/Config.js
+++ b/www/manager6/qemu/Config.js
@@ -172,8 +172,7 @@ Ext.define('PVE.qemu.Config', {
 	    consoleType: 'kvm',
 	    consoleName: vm.name,
 	    nodename: nodename,
-	    vmid: vmid,
-	    iconCls: 'fa fa-terminal'
+	    vmid: vmid
 	});
 
 	Ext.apply(me, {
-- 
2.11.0





More information about the pve-devel mailing list