From f462cb27c6c6b150f81b07dcf77381fe7f57c5e9 Mon Sep 17 00:00:00 2001 From: softsimon Date: Mon, 11 Jan 2021 21:11:09 +0700 Subject: [PATCH] Removing the term ELECTRS from ELECTRS_ITEMS_PER_PAGE setting. --- frontend/mempool-frontend-config.sample.json | 2 +- frontend/src/app/components/block/block.component.ts | 2 +- frontend/src/app/services/state.service.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/mempool-frontend-config.sample.json b/frontend/mempool-frontend-config.sample.json index 41b6d5945..8b668e0de 100644 --- a/frontend/mempool-frontend-config.sample.json +++ b/frontend/mempool-frontend-config.sample.json @@ -3,7 +3,7 @@ "LIQUID_ENABLED": false, "BISQ_ENABLED": false, "BISQ_SEPARATE_BACKEND": false, - "ELECTRS_ITEMS_PER_PAGE": 10, + "ITEMS_PER_PAGE": 10, "KEEP_BLOCKS_AMOUNT": 8, "SPONSORS_ENABLED": false, "NGINX_PROTOCOL": "http", diff --git a/frontend/src/app/components/block/block.component.ts b/frontend/src/app/components/block/block.component.ts index 99b66de77..188b19b08 100644 --- a/frontend/src/app/components/block/block.component.ts +++ b/frontend/src/app/components/block/block.component.ts @@ -47,7 +47,7 @@ export class BlockComponent implements OnInit, OnDestroy { this.websocketService.want(['blocks', 'mempool-blocks']); this.paginationMaxSize = window.matchMedia('(max-width: 700px)').matches ? 3 : 5; this.network = this.stateService.network; - this.itemsPerPage = this.stateService.env.ELECTRS_ITEMS_PER_PAGE; + this.itemsPerPage = this.stateService.env.ITEMS_PER_PAGE; this.txsLoadingStatus$ = this.route.paramMap .pipe( diff --git a/frontend/src/app/services/state.service.ts b/frontend/src/app/services/state.service.ts index 7ad2b2907..f51d7f9e9 100644 --- a/frontend/src/app/services/state.service.ts +++ b/frontend/src/app/services/state.service.ts @@ -21,7 +21,7 @@ export interface Env { BISQ_ENABLED: boolean; BISQ_SEPARATE_BACKEND: boolean; SPONSORS_ENABLED: boolean; - ELECTRS_ITEMS_PER_PAGE: number; + ITEMS_PER_PAGE: number; KEEP_BLOCKS_AMOUNT: number; NGINX_PROTOCOL?: string; NGINX_HOSTNAME?: string; @@ -34,7 +34,7 @@ const defaultEnv: Env = { 'BISQ_ENABLED': false, 'BISQ_SEPARATE_BACKEND': false, 'SPONSORS_ENABLED': false, - 'ELECTRS_ITEMS_PER_PAGE': 10, + 'ITEMS_PER_PAGE': 10, 'KEEP_BLOCKS_AMOUNT': 8, 'NGINX_PROTOCOL': 'http', 'NGINX_HOSTNAME': '127.0.0.1',