[pve-devel] [PATCH pve-manager 2/8] add Datacenter entry to menu

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Sep 23 17:54:40 CEST 2015


Add a menu entry to load the Datacenter page

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 www/mobile/MenuButton.js | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/www/mobile/MenuButton.js b/www/mobile/MenuButton.js
index 7b7205b..f48a8db 100644
--- a/www/mobile/MenuButton.js
+++ b/www/mobile/MenuButton.js
@@ -22,6 +22,18 @@ Ext.define('PVE.MenuButton', {
 	};
 
 	var items = [];
+
+	if (me.getPveStdMenu()) {
+	    items.push({
+		xtype: 'button',
+		ui: 'plain',
+		text: gettext('Datacenter'),
+		handler: addHide(function() {
+		    PVE.Workspace.gotoPage('');
+		})
+	    });
+	}
+
 	data.forEach(function(el) {
 	    items.push(Ext.apply(el, {
 		xtype: 'button',
@@ -85,4 +97,4 @@ Ext.define('PVE.MenuButton', {
 	}
 
     }
-});
\ No newline at end of file
+});
-- 
2.1.4



More information about the pve-devel mailing list