mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-05-30 01:02:17 +00:00
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 = [];
|
var items = [];
|
||||||
|
|
||||||
|
if (me.getPveStdMenu()) {
|
||||||
|
items.push({
|
||||||
|
xtype: 'button',
|
||||||
|
ui: 'plain',
|
||||||
|
text: gettext('Datacenter'),
|
||||||
|
handler: addHide(function() {
|
||||||
|
PVE.Workspace.gotoPage('');
|
||||||
|
})
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
data.forEach(function(el) {
|
data.forEach(function(el) {
|
||||||
items.push(Ext.apply(el, {
|
items.push(Ext.apply(el, {
|
||||||
xtype: 'button',
|
xtype: 'button',
|
||||||
@ -85,4 +97,4 @@ Ext.define('PVE.MenuButton', {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user