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