From c5e91d8e378e6aaf811cfdf99e565d810ddd55cc Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 23 Sep 2015 17:54:40 +0200 Subject: [PATCH] add Datacenter entry to menu Add a menu entry to load the Datacenter page Signed-off-by: Thomas Lamprecht --- 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 7b7205b1..f48a8db6 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 +});