[accelerator] fix accel status in widget
This commit is contained in:
parent
c5beee3a40
commit
3f2581886d
@ -50,6 +50,12 @@ export class AccelerationsListComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
this.miningService.getPools().subscribe(pools => {
|
||||||
|
for (const pool of pools) {
|
||||||
|
this.pools[pool.unique_id] = pool;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
if (!this.widget) {
|
if (!this.widget) {
|
||||||
this.websocketService.want(['blocks']);
|
this.websocketService.want(['blocks']);
|
||||||
this.seoService.setTitle($localize`:@@02573b6980a2d611b4361a2595a4447e390058cd:Accelerations`);
|
this.seoService.setTitle($localize`:@@02573b6980a2d611b4361a2595a4447e390058cd:Accelerations`);
|
||||||
@ -82,12 +88,6 @@ export class AccelerationsListComponent implements OnInit, OnDestroy {
|
|||||||
).subscribe(() => {
|
).subscribe(() => {
|
||||||
this.pageChange(this.page);
|
this.pageChange(this.page);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.miningService.getPools().subscribe(pools => {
|
|
||||||
for (const pool of pools) {
|
|
||||||
this.pools[pool.unique_id] = pool;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.skeletonLines = this.widget === true ? [...Array(6).keys()] : [...Array(15).keys()];
|
this.skeletonLines = this.widget === true ? [...Array(6).keys()] : [...Array(15).keys()];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user