From 8785e5b2b7ea9609e7eac09af0f596be47d417bf Mon Sep 17 00:00:00 2001 From: sumitdaga Date: Wed, 16 Jan 2019 14:38:34 +0530 Subject: [PATCH 1/2] fixed pagination issue of 265 --- src/app/components/data-viewer/data-viewer.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/data-viewer/data-viewer.component.ts b/src/app/components/data-viewer/data-viewer.component.ts index 7953b7a..716d59e 100644 --- a/src/app/components/data-viewer/data-viewer.component.ts +++ b/src/app/components/data-viewer/data-viewer.component.ts @@ -207,7 +207,6 @@ export class DataViewerComponent implements OnInit, OnChanges { this.loadingPageData = true; this.redisService.call(instanceId, [['SMEMBERS', key]]).subscribe(ret => { this.setCachedData = injectValuesToArray(ret[0]); - this.page.totalSize = this.setCachedData.length; this.data = this.setCachedData.slice(start, end); this.loadingPageData = false; this.showPagination = true; @@ -216,6 +215,7 @@ export class DataViewerComponent implements OnInit, OnChanges { this.showPagination = true; this.data = this.setCachedData.slice(start, end); } + this.page.totalSize = this.setCachedData.length; } else if (type === 'hash') { if (!this.hashCachedData) { this.loadingPageData = true; @@ -228,7 +228,6 @@ export class DataViewerComponent implements OnInit, OnChanges { }); i += 2; } - this.page.totalSize = this.hashCachedData.length; this.data = this.hashCachedData.slice(start, end); this.loadingPageData = false; this.showPagination = true; @@ -238,6 +237,7 @@ export class DataViewerComponent implements OnInit, OnChanges { this.showPagination = true; this.data = this.hashCachedData.slice(start, end); } + this.page.totalSize = this.hashCachedData.length; } else if (type === 'string') { this.stringValue = this.pageData.item.value; } From 61db1405fe7fd77f575b78847a4a56ebc4fce80b Mon Sep 17 00:00:00 2001 From: sumitdaga Date: Wed, 16 Jan 2019 14:44:38 +0530 Subject: [PATCH 2/2] update --- src/app/components/data-viewer/data-viewer.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/components/data-viewer/data-viewer.component.ts b/src/app/components/data-viewer/data-viewer.component.ts index 716d59e..4dd5a81 100644 --- a/src/app/components/data-viewer/data-viewer.component.ts +++ b/src/app/components/data-viewer/data-viewer.component.ts @@ -207,15 +207,16 @@ export class DataViewerComponent implements OnInit, OnChanges { this.loadingPageData = true; this.redisService.call(instanceId, [['SMEMBERS', key]]).subscribe(ret => { this.setCachedData = injectValuesToArray(ret[0]); + this.page.totalSize = this.setCachedData.length; this.data = this.setCachedData.slice(start, end); this.loadingPageData = false; this.showPagination = true; }); } else { this.showPagination = true; + this.page.totalSize = this.setCachedData.length; this.data = this.setCachedData.slice(start, end); } - this.page.totalSize = this.setCachedData.length; } else if (type === 'hash') { if (!this.hashCachedData) { this.loadingPageData = true; @@ -228,6 +229,7 @@ export class DataViewerComponent implements OnInit, OnChanges { }); i += 2; } + this.page.totalSize = this.hashCachedData.length; this.data = this.hashCachedData.slice(start, end); this.loadingPageData = false; this.showPagination = true; @@ -235,9 +237,9 @@ export class DataViewerComponent implements OnInit, OnChanges { ); } else { this.showPagination = true; + this.page.totalSize = this.hashCachedData.length; this.data = this.hashCachedData.slice(start, end); } - this.page.totalSize = this.hashCachedData.length; } else if (type === 'string') { this.stringValue = this.pageData.item.value; } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy