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',
|
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'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -18,8 +18,5 @@
|
|||||||
<div class="text-center loading-spinner" [class]="style" *ngIf="isLoading && !disableSpinner">
|
<div class="text-center loading-spinner" [class]="style" *ngIf="isLoading && !disableSpinner">
|
||||||
<div class="spinner-border text-light"></div>
|
<div class="spinner-border text-light"></div>
|
||||||
</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>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
@@ -36,7 +36,6 @@ export class NodesChannelsMap implements OnInit {
|
|||||||
channelCurve = 0;
|
channelCurve = 0;
|
||||||
nodeSize = 4;
|
nodeSize = 4;
|
||||||
isLoading = false;
|
isLoading = false;
|
||||||
showIndexingInProgress = false;
|
|
||||||
|
|
||||||
chartInstance = undefined;
|
chartInstance = undefined;
|
||||||
chartOptions: EChartsOption = {};
|
chartOptions: EChartsOption = {};
|
||||||
@@ -206,20 +205,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'
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user