Repost "want" after reconnect.
This commit is contained in:
1 parent
c206cc8eb5
commit
1f3dd1f8a6
5 files changed
+29
-10
No files matched your search
@@ -154,10 +154,10 @@ export class StatisticsComponent implements OnInit {
|
||||
switchMap(() => {
|
||||
this.spinnerLoading = true;
|
||||
if (this.radioGroupForm.controls['dateSpan'].value === '2h') {
|
||||
this.apiService.sendWebSocket({'action': 'want', data: ['live-2h-chart']});
|
||||
this.apiService.webSocketWant(['live-2h-chart']);
|
||||
return this.apiService.list2HStatistics$();
|
||||
}
|
||||
this.apiService.sendWebSocket({'action': 'want', data: ['']});
|
||||
this.apiService.webSocketWant([]);
|
||||
if (this.radioGroupForm.controls['dateSpan'].value === '24h') {
|
||||
return this.apiService.list24HStatistics$();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user