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:
parent
abfdd685df
commit
c5e91d8e37
@ -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', {
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user