Commit 988a1af8 authored by Thomas Lamprecht's avatar Thomas Lamprecht Committed by Dietmar Maurer

use new PVEBar instead of TitleBar

Signed-off-by: 's avatarThomas Lamprecht <t.lamprecht@proxmox.com>
parent 4496e999
...@@ -34,33 +34,10 @@ Ext.define('PVE.Datacenter', { ...@@ -34,33 +34,10 @@ Ext.define('PVE.Datacenter', {
config: { config: {
appUrl: '', appUrl: '',
items: [ items: [
{ {
xtype: 'titlebar', xtype: 'pveTitleBar',
docked: 'top',
title: gettext('Datacenter'), title: gettext('Datacenter'),
items: [ pveBackButton: false
{
xtype: 'button',
align: 'right',
iconCls: 'refresh',
handler: function() {
this.up('pvePage').reload();
}
},
{
xtype: 'pveMenuButton',
align: 'right',
pveStdMenu: true,
menuItems: [
{
text: gettext('Tasks'),
handler: function() {
PVE.Workspace.gotoPage('tasks');
}
}
]
}
]
}, },
{ {
xtype: 'pveClusterInfo' xtype: 'pveClusterInfo'
...@@ -139,6 +116,15 @@ Ext.define('PVE.Datacenter', { ...@@ -139,6 +116,15 @@ Ext.define('PVE.Datacenter', {
initialize: function() { initialize: function() {
var me = this; var me = this;
me.down('pveMenuButton').setMenuItems([
{
text: gettext('Tasks'),
handler: function() {
PVE.Workspace.gotoPage('tasks');
}
}
]);
me.reload(); me.reload();
} }
......
...@@ -32,23 +32,7 @@ Ext.define('PVE.LXCSummary', { ...@@ -32,23 +32,7 @@ Ext.define('PVE.LXCSummary', {
config: { config: {
items: [ items: [
{ {
xtype: 'titlebar', xtype: 'pveTitleBar'
docked: 'top',
items: [
{
xtype: 'button',
align: 'right',
iconCls: 'refresh',
handler: function() {
this.up('pvePage').reload();
}
},
{
xtype: 'pveMenuButton',
align: 'right',
pveStdMenu: true
}
]
}, },
{ {
xtype: 'component', xtype: 'component',
......
...@@ -8,15 +8,8 @@ Ext.define('PVE.MigrateBase', { ...@@ -8,15 +8,8 @@ Ext.define('PVE.MigrateBase', {
config: { config: {
items: [ items: [
{ {
xtype: 'titlebar', xtype: 'pveTitleBar',
docked: 'top', pveReloadButton: false
items: [
{
xtype: 'pveMenuButton',
align: 'right',
pveStdMenu: true
}
]
}, },
{ {
xtype: 'formpanel', xtype: 'formpanel',
......
...@@ -48,23 +48,7 @@ Ext.define('PVE.NodeSummary', { ...@@ -48,23 +48,7 @@ Ext.define('PVE.NodeSummary', {
config: { config: {
items: [ items: [
{ {
xtype: 'titlebar', xtype: 'pveTitleBar'
docked: 'top',
items: [
{
xtype: 'button',
align: 'right',
iconCls: 'refresh',
handler: function() {
this.up('pvePage').reload();
}
},
{
xtype: 'pveMenuButton',
align: 'right',
pveStdMenu: true
}
]
}, },
{ {
xtype: 'pveNodeInfo' xtype: 'pveNodeInfo'
......
...@@ -32,23 +32,7 @@ Ext.define('PVE.QemuSummary', { ...@@ -32,23 +32,7 @@ Ext.define('PVE.QemuSummary', {
config: { config: {
items: [ items: [
{ {
xtype: 'titlebar', xtype: 'pveTitleBar'
docked: 'top',
items: [
{
xtype: 'button',
align: 'right',
iconCls: 'refresh',
handler: function() {
this.up('pvePage').reload();
}
},
{
xtype: 'pveMenuButton',
align: 'right',
pveStdMenu: true
}
]
}, },
{ {
xtype: 'component', xtype: 'component',
......
...@@ -5,23 +5,7 @@ Ext.define('PVE.TaskListBase', { ...@@ -5,23 +5,7 @@ Ext.define('PVE.TaskListBase', {
baseUrl: undefined, baseUrl: undefined,
items: [ items: [
{ {
xtype: 'titlebar', xtype: 'pveTitleBar'
docked: 'top',
items: [
{
xtype: 'button',
align: 'right',
iconCls: 'refresh',
handler: function() {
this.up('pvePage').reload();
}
},
{
xtype: 'pveMenuButton',
align: 'right',
pveStdMenu: true
}
]
}, },
{ {
xtype: 'list', xtype: 'list',
......
...@@ -16,16 +16,7 @@ Ext.define('PVE.TaskViewer', { ...@@ -16,16 +16,7 @@ Ext.define('PVE.TaskViewer', {
config: { config: {
items: [ items: [
{ {
xtype: 'titlebar', xtype: 'pveTitleBar'
title: gettext("Task Viewer"),
docked: 'top',
items: [
{
xtype: 'pveMenuButton',
align: 'right',
pveStdMenu: true
}
]
}, },
{ {
itemId: 'taskStatus', itemId: 'taskStatus',
......
...@@ -26,17 +26,10 @@ Ext.define('PVE.ErrorPage', { ...@@ -26,17 +26,10 @@ Ext.define('PVE.ErrorPage', {
align: 'stretch' align: 'stretch'
}, },
items: [ items: [
{ {
xtype: 'titlebar', xtype: 'pveTitleBar',
docked: 'top', pveBackButton: false,
title: gettext('Error'), title: gettext('Error')
items: [
{
xtype: 'pveMenuButton',
align: 'right',
pveStdMenu: true
}
]
} }
] ]
} }
......
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