]> git.proxmox.com Git - pve-manager.git/blame - www/mobile/PVEBar.js
ui: tags: fix focus for edit mode
[pve-manager.git] / www / mobile / PVEBar.js
CommitLineData
5b765ae8
TL
1Ext.define('PVE.ATitleBar', {
2 extend: 'Ext.TitleBar',
3 alias: ['widget.pveTitleBar'],
4
5 config: {
6 docked: 'top',
7 pveReloadButton: true,
8 pveBackButton: true,
5ba187c1 9 pveStdMenu: true, // add 'Login' and 'Datacenter' to menu by default
5b765ae8
TL
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();
5ba187c1 25 },
5b765ae8
TL
26 });
27 }
28
29 if (me.getPveReloadButton()) {
30 items.push({
31 align: 'right',
32 iconCls: 'refresh',
33 handler: function() {
34 this.up('pvePage').reload();
5ba187c1 35 },
5b765ae8
TL
36 });
37 }
38
39 items.push({
40 xtype: 'pveMenuButton',
41 align: 'right',
5ba187c1 42 pveStdMenu: me.getPveStdMenu(),
5b765ae8
TL
43 });
44
45 me.setItems(items);
5ba187c1 46 },
5b765ae8
TL
47
48
49});