Update channels map indexing indicator

This commit is contained in:
softsimon 2023-03-21 23:14:45 +09:00
parent 811c14a6bd
commit a2e23014f4
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
2 changed files with 2 additions and 9 deletions

View File

@ -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'
}; };

View File

@ -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'
}; };