Skip to content

Commit

Permalink
fix(ui): limit 30 workflow runs in sidebar
Browse files Browse the repository at this point in the history
Signed-off-by: francois  samin <[email protected]>
  • Loading branch information
fsamin authored and yesnault committed Oct 15, 2020
1 parent 7be3b91 commit 04c3e66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ export class WorkflowSidebarRunListComponent implements OnDestroy {

scroll() {
if (!Array.isArray(this.selectedTags) || !this.selectedTags.length) {
this.offset += 50;
this._workflowRunService.runs(this.project.key, this.workflow.name, '50', this.offset.toString())
this.offset += 30;
this._workflowRunService.runs(this.project.key, this.workflow.name, '30', this.offset.toString())
.pipe(finalize(() => this._cd.markForCheck()))
.subscribe((runs) => {
this.workflowRuns = this.workflowRuns.concat(runs);
Expand Down Expand Up @@ -189,7 +189,7 @@ export class WorkflowSidebarRunListComponent implements OnDestroy {
}

this._store.dispatch(new GetWorkflowRuns(
{projectKey: this.project.key, workflowName: this.workflow.name, limit: '50', offset: '0', filters})
{projectKey: this.project.key, workflowName: this.workflow.name, limit: '30', offset: '0', filters})
);
}

Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/views/workflow/workflow.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export class WorkflowComponent implements OnInit, OnDestroy {

initRuns(key: string, workflowName: string, filters?: {}): void {
this._store.dispatch(
new GetWorkflowRuns({ projectKey: key, workflowName: workflowName, limit: '15', offset: '0', filters })
new GetWorkflowRuns({ projectKey: key, workflowName: workflowName, limit: '30', offset: '0', filters })
);
}

Expand Down

0 comments on commit 04c3e66

Please sign in to comment.