From 24d0eaf2a27514b92edb0f151a88801cd003b0d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Tue, 24 Apr 2018 11:15:43 +0200 Subject: [PATCH] Change default pageSize to 10 records --- frontend/src/app/quotes/quotes.component.html | 2 +- frontend/src/app/quotes/quotes.component.ts | 2 +- frontend/src/app/services/quotes.service.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/quotes/quotes.component.html b/frontend/src/app/quotes/quotes.component.html index a9e4127..071e053 100644 --- a/frontend/src/app/quotes/quotes.component.html +++ b/frontend/src/app/quotes/quotes.component.html @@ -53,7 +53,7 @@ - diff --git a/frontend/src/app/quotes/quotes.component.ts b/frontend/src/app/quotes/quotes.component.ts index 3db0ce6..f607fb5 100644 --- a/frontend/src/app/quotes/quotes.component.ts +++ b/frontend/src/app/quotes/quotes.component.ts @@ -53,7 +53,7 @@ export class QuotesComponent implements OnInit, AfterViewInit { ngOnInit() { this.dataSource = new QuotesDataSource(this.quotesService); - this.dataSource.loadQuotes('', 'date', 'desc', 0, 20); + this.dataSource.loadQuotes('', 'date', 'desc', 0, 10); } ngAfterViewInit() { diff --git a/frontend/src/app/services/quotes.service.ts b/frontend/src/app/services/quotes.service.ts index 88d1da2..339d697 100644 --- a/frontend/src/app/services/quotes.service.ts +++ b/frontend/src/app/services/quotes.service.ts @@ -21,7 +21,7 @@ export class QuotesService { findQuotes( filter = '', sortBy = 'date', sortOrder = 'desc', - pageNumber = 0, pageSize = 20): Observable { + pageNumber = 0, pageSize = 10): Observable { return this.http.get('/quotes/api/quotes', { observe: 'response',