[pve-devel] [PATCH manager] open my settings directly with click

Dominik Csapak d.csapak at proxmox.com
Fri Oct 28 10:05:52 CEST 2016


instead of having a menu with one entry, directly open the my settings
window. also change the icon from a down caret to a gear, to make it
more visible

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

diff --git a/www/manager6/Workspace.js b/www/manager6/Workspace.js
index 87d3633..6d23b7b 100644
--- a/www/manager6/Workspace.js
+++ b/www/manager6/Workspace.js
@@ -402,18 +402,10 @@ Ext.define('PVE.StdWorkspace', {
 			{
 			    xtype: 'button',
 			    margin: '0 10 0 0',
-			    iconCls: 'fa black fa-caret-down',
-			    menuAlign: 'tr-br?',
-			    menu: {
-				showSeparator: false,
-				items: [{
-				    text: gettext('My Settings'),
-				    iconCls: 'fa fa-fw fa-gear',
-				    handler: function() {
-					var win = Ext.create('PVE.window.Settings');
-					win.show();
-				    }
-				}]
+			    iconCls: 'fa black fa-gear',
+			    handler: function() {
+				var win = Ext.create('PVE.window.Settings');
+				win.show();
 			    }
 			},
 			{
-- 
2.1.4





More information about the pve-devel mailing list