From 91a19a0fcd43480a23e04fa9aa798a5ce370452b Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Fri, 18 May 2018 16:08:30 +0000 Subject: [PATCH] 1. Bug fix in paging components (limit was not initialized). git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@52106 d315682c-612b-4755-9ff5-7f18f6832af3 --- utils/pagingFormatter.component.ts | 1 + utils/pagingFormatterNoLoad.component.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/utils/pagingFormatter.component.ts b/utils/pagingFormatter.component.ts index 75277c1d..4f8c926e 100644 --- a/utils/pagingFormatter.component.ts +++ b/utils/pagingFormatter.component.ts @@ -56,6 +56,7 @@ export class PagingFormatter { this.route.data .subscribe((data: { envSpecific: EnvProperties }) => { this.properties = data.envSpecific; + this.limit = this.properties.pagingLimit; } ); } diff --git a/utils/pagingFormatterNoLoad.component.ts b/utils/pagingFormatterNoLoad.component.ts index bb3a4fc3..0783b704 100644 --- a/utils/pagingFormatterNoLoad.component.ts +++ b/utils/pagingFormatterNoLoad.component.ts @@ -54,6 +54,7 @@ export class pagingFormatterNoLoad { this.route.data .subscribe((data: { envSpecific: EnvProperties }) => { this.properties = data.envSpecific; + this.limit = this.properties.pagingLimit; } ); }