Update channels map indexing indicator

This commit is contained in:
softsimon committed 2023-03-21 23:14:45 +09:00
1 parent 811c14a6bd
commit a2e23014f4
2 files changed
+2 -9

No files matched your search

@@ -81,7 +81,7 @@ export class NodeStatisticsChartComponent implements OnInit {
color: 'grey', color: 'grey',
fontSize: 15 fontSize: 15
}, },
text: `Loading`, text: $localize`No data to display yet. Try again later.`,
left: 'center', left: 'center',
top: 'center' top: 'center'
}; };
@@ -206,20 +206,13 @@ export class NodesChannelsMap implements OnInit {
prepareChartOptions(nodes, channels) { prepareChartOptions(nodes, channels) {
let title: object; let title: object;
if (channels.length === 0 && !this.placeholder) { if (channels.length === 0 && !this.placeholder) {
this.chartOptions = null;
this.showIndexingInProgress = true;
this.isLoading = false; this.isLoading = false;
return;
}
// empty map fallback
if (channels.length === 0 && this.placeholder) {
title = { title = {
textStyle: { textStyle: {
color: 'white', color: 'white',
fontSize: 18 fontSize: 18
}, },
text: $localize`No geolocation data available`, text: $localize`No data to display yet. Try again later.`,
left: 'center', left: 'center',
top: 'center' top: 'center'
}; };