mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-16 02:06:18 +01:00
replace welcome tab with repository tab
This commit is contained in:
@@ -118,7 +118,7 @@ Ext.onReady(function(){
|
|||||||
items: [{
|
items: [{
|
||||||
label: 'Repositories',
|
label: 'Repositories',
|
||||||
fn: function(){
|
fn: function(){
|
||||||
addTabPanel('repositories', 'repositoryPanel', 'Repositories');
|
mainTabPanel.setActiveTab('repositories');
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
@@ -209,20 +209,18 @@ Ext.onReady(function(){
|
|||||||
panel.doLayout();
|
panel.doLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
function createWelcomePanel(){
|
function createRepositoryPanel(){
|
||||||
if ( debug ){
|
if ( debug ){
|
||||||
console.debug('create welcome tab');
|
console.debug('create repository panel');
|
||||||
}
|
}
|
||||||
mainTabPanel.add({
|
mainTabPanel.add({
|
||||||
id: 'welcomeTab',
|
id: 'repositories',
|
||||||
xtype: 'panel',
|
xtype: 'repositoryPanel',
|
||||||
title: 'Welcome',
|
title: 'Repositories',
|
||||||
hideMode: 'offsets',
|
closeable: false,
|
||||||
bodyCssClass: 'x-panel-mc',
|
|
||||||
enableTabScroll: true,
|
|
||||||
autoScroll: true
|
autoScroll: true
|
||||||
});
|
});
|
||||||
mainTabPanel.setActiveTab('welcomeTab');
|
mainTabPanel.setActiveTab('repositories');
|
||||||
}
|
}
|
||||||
|
|
||||||
// register login callbacks
|
// register login callbacks
|
||||||
@@ -230,6 +228,6 @@ Ext.onReady(function(){
|
|||||||
// create menu
|
// create menu
|
||||||
loginCallbacks.splice(0, 0, createMainMenu );
|
loginCallbacks.splice(0, 0, createMainMenu );
|
||||||
// add welcome tab
|
// add welcome tab
|
||||||
loginCallbacks.push( createWelcomePanel );
|
loginCallbacks.push( createRepositoryPanel );
|
||||||
|
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user