mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 17:05:43 +01:00
fix navigation panel title
This commit is contained in:
@@ -5,17 +5,13 @@
|
|||||||
|
|
||||||
|
|
||||||
Ext.onReady(function(){
|
Ext.onReady(function(){
|
||||||
|
|
||||||
// NOTE: This is an example showing simple state management. During development,
|
|
||||||
// it is generally best to disable state management as dynamically-generated ids
|
|
||||||
// can change across page loads, leading to unpredictable results. The developer
|
|
||||||
// should ensure that stable state ids are set for stateful components in real apps.
|
|
||||||
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
|
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
|
||||||
|
|
||||||
var tabPanel = new Ext.TabPanel({
|
var tabPanel = new Ext.TabPanel({
|
||||||
region: 'center', // a center region is ALWAYS required for border layout
|
region: 'center',
|
||||||
deferredRender: false,
|
deferredRender: false,
|
||||||
activeTab: 0, // first tab initially active
|
activeTab: 0,
|
||||||
items: [{
|
items: [{
|
||||||
id: 'welcome',
|
id: 'welcome',
|
||||||
xtype: 'panel',
|
xtype: 'panel',
|
||||||
@@ -28,7 +24,6 @@ Ext.onReady(function(){
|
|||||||
new Ext.Viewport({
|
new Ext.Viewport({
|
||||||
layout: 'border',
|
layout: 'border',
|
||||||
items: [
|
items: [
|
||||||
// create instance immediately
|
|
||||||
new Ext.BoxComponent({
|
new Ext.BoxComponent({
|
||||||
region: 'north',
|
region: 'north',
|
||||||
id: 'north-panel',
|
id: 'north-panel',
|
||||||
@@ -36,8 +31,8 @@ Ext.onReady(function(){
|
|||||||
height: 75
|
height: 75
|
||||||
}), {
|
}), {
|
||||||
region: 'west',
|
region: 'west',
|
||||||
id: 'west', // see Ext.getCmp() below
|
id: 'west',
|
||||||
title: 'West',
|
title: 'Navigation',
|
||||||
xtype: 'navPanel',
|
xtype: 'navPanel',
|
||||||
split: true,
|
split: true,
|
||||||
width: 200,
|
width: 200,
|
||||||
@@ -53,9 +48,6 @@ Ext.onReady(function(){
|
|||||||
height: 16,
|
height: 16,
|
||||||
margins: '2 2 2 5'
|
margins: '2 2 2 5'
|
||||||
}),
|
}),
|
||||||
// in this instance the TabPanel is not wrapped by another panel
|
|
||||||
// since no title is needed, this Panel is added directly
|
|
||||||
// as a Container
|
|
||||||
tabPanel
|
tabPanel
|
||||||
]});
|
]});
|
||||||
|
|
||||||
@@ -120,9 +112,6 @@ Ext.onReady(function(){
|
|||||||
},
|
},
|
||||||
failure: function(){
|
failure: function(){
|
||||||
var loginWin = new Sonia.login.Window();
|
var loginWin = new Sonia.login.Window();
|
||||||
/*loginWin.on('success', function(){
|
|
||||||
createMainMenu();
|
|
||||||
});*/
|
|
||||||
loginWin.show();
|
loginWin.show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user