Replacing footer and latest blocks with a stats dashboard.

This commit is contained in:
softsimon
2020-09-21 19:41:12 +07:00
parent 8146939f0f
commit 6c1d28a9ac
18 changed files with 235 additions and 209 deletions

View File

@@ -108,10 +108,10 @@ export class StatisticsComponent implements OnInit {
switchMap(() => {
this.spinnerLoading = true;
if (this.radioGroupForm.controls.dateSpan.value === '2h') {
this.websocketService.want(['blocks', 'stats', 'live-2h-chart']);
this.websocketService.want(['blocks', 'live-2h-chart']);
return this.apiService.list2HStatistics$();
}
this.websocketService.want(['blocks', 'stats']);
this.websocketService.want(['blocks']);
if (this.radioGroupForm.controls.dateSpan.value === '24h') {
return this.apiService.list24HStatistics$();
}