From e4fb3e9906ea574f3184750493a266d0688ed22e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Thu, 10 May 2018 22:13:20 +0200 Subject: [PATCH] Change default page size to 20 items --- ng-app/src/app/quotes/quotes.component.html | 2 +- ng-app/src/app/quotes/quotes.component.ts | 2 +- ng-app/src/app/services/quotes.service.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ng-app/src/app/quotes/quotes.component.html b/ng-app/src/app/quotes/quotes.component.html index ff6d555..5d9755f 100644 --- a/ng-app/src/app/quotes/quotes.component.html +++ b/ng-app/src/app/quotes/quotes.component.html @@ -61,7 +61,7 @@ - diff --git a/ng-app/src/app/quotes/quotes.component.ts b/ng-app/src/app/quotes/quotes.component.ts index 937fc93..aef2ce3 100644 --- a/ng-app/src/app/quotes/quotes.component.ts +++ b/ng-app/src/app/quotes/quotes.component.ts @@ -58,7 +58,7 @@ export class QuotesComponent implements OnInit, AfterViewInit { ngOnInit() { this.dataSource = new QuotesDataSource(this.quotesService); - this.dataSource.loadQuotes('', 'id', 'desc', 0, 50); + this.dataSource.loadQuotes('', 'id', 'desc', 0, 20); } ngAfterViewInit() { diff --git a/ng-app/src/app/services/quotes.service.ts b/ng-app/src/app/services/quotes.service.ts index 6f4ec05..649a9b3 100644 --- a/ng-app/src/app/services/quotes.service.ts +++ b/ng-app/src/app/services/quotes.service.ts @@ -21,7 +21,7 @@ export class QuotesService { findQuotes( filter = '', sortBy = 'id', sortOrder = 'desc', - pageNumber = 0, pageSize = 50): Observable { + pageNumber = 0, pageSize = 20): Observable { return this.http.get('/quotes/api/quotes', { observe: 'response',