]> git.proxmox.com Git - pve-manager.git/blob - www/mobile/PVEBar.js
ui: restore: display "Hostname" for container
[pve-manager.git] / www / mobile / PVEBar.js
1 Ext.define('PVE.ATitleBar', {
2 extend: 'Ext.TitleBar',
3 alias: ['widget.pveTitleBar'],
4
5 config: {
6 docked: 'top',
7 pveReloadButton: true,
8 pveBackButton: true,
9 pveStdMenu: true // add 'Login' and 'Datacenter' to menu by default
10 },
11
12 initialize: function() {
13 var me = this;
14
15 me.callParent();
16
17 var items = [];
18
19 if (me.getPveBackButton()) {
20 items.push({
21 align: 'left',
22 iconCls: 'arrow_left',
23 handler: function() {
24 PVE.Workspace.goBack();
25 }
26 });
27 }
28
29 if (me.getPveReloadButton()) {
30 items.push({
31 align: 'right',
32 iconCls: 'refresh',
33 handler: function() {
34 this.up('pvePage').reload();
35 }
36 });
37 }
38
39 items.push({
40 xtype: 'pveMenuButton',
41 align: 'right',
42 pveStdMenu: me.getPveStdMenu()
43 });
44
45 me.setItems(items);
46 }
47
48
49 });