add Datacenter entry to menu

Add a menu entry to load the Datacenter page

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2015-09-23 17:54:40 +02:00 committed by Dietmar Maurer
parent abfdd685df
commit c5e91d8e37

View File

@ -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', {
}
}
});
});