Commit ebe5456a authored by Thomas Lamprecht's avatar Thomas Lamprecht Committed by Dietmar Maurer

add Datacenter entry to menu

Add a menu entry to load the Datacenter page
Signed-off-by: 's avatarThomas Lamprecht <t.lamprecht@proxmox.com>
parent 4a3d7101
......@@ -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
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment