mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-06 04:10:52 +01:00
added loading mask to first wizard page
This commit is contained in:
@@ -120,7 +120,7 @@ Sonia.hg.ConfigWizardPanel = Ext.extend(Ext.Panel,{
|
||||
this.addEvents('finish');
|
||||
|
||||
var packageStore = new Ext.data.JsonStore({
|
||||
id: 'pkgStore',
|
||||
storeId: 'pkgStore',
|
||||
proxy: new Ext.data.HttpProxy({
|
||||
url: restUrl + 'config/repositories/hg/packages.json',
|
||||
disableCaching: false
|
||||
@@ -135,8 +135,6 @@ Sonia.hg.ConfigWizardPanel = Ext.extend(Ext.Panel,{
|
||||
}
|
||||
});
|
||||
|
||||
packageStore.load();
|
||||
|
||||
var hgInstallationStore = new Ext.data.Store({
|
||||
proxy: new Ext.data.HttpProxy({
|
||||
url: restUrl + 'config/repositories/hg/installations/hg.json'
|
||||
@@ -204,7 +202,14 @@ Sonia.hg.ConfigWizardPanel = Ext.extend(Ext.Panel,{
|
||||
inputValue: 'remoteInstall',
|
||||
disabled: true
|
||||
}]
|
||||
}]
|
||||
}],
|
||||
listeners: {
|
||||
render: function(panel){
|
||||
panel.body.mask('Loading ...');
|
||||
var store = Ext.StoreMgr.lookup('pkgStore');
|
||||
store.load.defer(100, store);
|
||||
}
|
||||
}
|
||||
},{
|
||||
id: 'localInstall',
|
||||
layout: 'form',
|
||||
@@ -272,6 +277,7 @@ Sonia.hg.ConfigWizardPanel = Ext.extend(Ext.Panel,{
|
||||
},
|
||||
|
||||
checkIfPackageAvailable: function(store){
|
||||
Ext.getCmp('cod').body.unmask();
|
||||
var c = store.getTotalCount();
|
||||
if ( debug ){
|
||||
console.debug( "found " + c + " package(s)" );
|
||||
|
||||
Reference in New Issue
Block a user