Compare commits
2 Commits
mononaut/l
...
v2.5.0-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf5821c8c8 | ||
|
|
a2e23014f4 |
@@ -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'
|
||||
};
|
||||
|
||||
@@ -18,8 +18,5 @@
|
||||
<div class="text-center loading-spinner" [class]="style" *ngIf="isLoading && !disableSpinner">
|
||||
<div class="spinner-border text-light"></div>
|
||||
</div>
|
||||
<div *ngIf="showIndexingInProgress" class="indexing-message">
|
||||
<span class="badge badge-pill badge-warning" i18n="lightning.indexing-in-progress">Indexing in progress</span>
|
||||
</div>
|
||||
</ng-container>
|
||||
</div>
|
||||
@@ -36,7 +36,6 @@ export class NodesChannelsMap implements OnInit {
|
||||
channelCurve = 0;
|
||||
nodeSize = 4;
|
||||
isLoading = false;
|
||||
showIndexingInProgress = false;
|
||||
|
||||
chartInstance = undefined;
|
||||
chartOptions: EChartsOption = {};
|
||||
@@ -206,20 +205,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'
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user