From a2e23014f430d4a4e3a2e7f049b6c3ffdd4f7dd1 Mon Sep 17 00:00:00 2001 From: softsimon Date: Tue, 21 Mar 2023 23:14:45 +0900 Subject: [PATCH] Update channels map indexing indicator --- .../node-statistics-chart.component.ts | 2 +- .../nodes-channels-map/nodes-channels-map.component.ts | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/frontend/src/app/lightning/node-statistics-chart/node-statistics-chart.component.ts b/frontend/src/app/lightning/node-statistics-chart/node-statistics-chart.component.ts index 7518b33da..4416ae297 100644 --- a/frontend/src/app/lightning/node-statistics-chart/node-statistics-chart.component.ts +++ b/frontend/src/app/lightning/node-statistics-chart/node-statistics-chart.component.ts @@ -81,7 +81,7 @@ export class NodeStatisticsChartComponent implements OnInit { color: 'grey', fontSize: 15 }, - text: `Loading`, + text: $localize`No data to display yet. Try again later.`, left: 'center', top: 'center' }; diff --git a/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.ts b/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.ts index 05e35b6af..3899bb673 100644 --- a/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.ts +++ b/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.ts @@ -206,20 +206,13 @@ export class NodesChannelsMap implements OnInit { prepareChartOptions(nodes, channels) { let title: object; if (channels.length === 0 && !this.placeholder) { - this.chartOptions = null; - this.showIndexingInProgress = true; this.isLoading = false; - return; - } - - // empty map fallback - if (channels.length === 0 && this.placeholder) { title = { textStyle: { color: 'white', fontSize: 18 }, - text: $localize`No geolocation data available`, + text: $localize`No data to display yet. Try again later.`, left: 'center', top: 'center' };