mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-06-17 18:42:04 +02:00
improve performance of history panel
This commit is contained in:
@@ -35,6 +35,7 @@ Sonia.repository.ChangesetViewerPanel = Ext.extend(Ext.Panel, {
|
||||
start: 0,
|
||||
pageSize: 20,
|
||||
changesetStore: null,
|
||||
startLimit: null,
|
||||
|
||||
// parameters for file history view
|
||||
inline: false,
|
||||
@@ -48,9 +49,13 @@ Sonia.repository.ChangesetViewerPanel = Ext.extend(Ext.Panel, {
|
||||
this.url = restUrl + 'repositories/' + this.repository.id + '/changesets.json';
|
||||
}
|
||||
|
||||
if ( ! this.startLimit ){
|
||||
this.startLimit = this.pageSize;
|
||||
}
|
||||
|
||||
var params = {
|
||||
start: this.start,
|
||||
limit: this.pageSize
|
||||
limit: this.startLimit
|
||||
}
|
||||
|
||||
var baseParams = {};
|
||||
|
||||
@@ -109,7 +109,8 @@ Sonia.repository.ContentPanel = Ext.extend(Ext.Panel, {
|
||||
path: this.path,
|
||||
inline: true,
|
||||
// TODO find a better way
|
||||
pageSize: 9999
|
||||
pageSize: 9999,
|
||||
startLimit: -1
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user