mirror of
https://github.com/everoddandeven/monerod-gui.git
synced 2025-02-27 13:20:19 +00:00
Try fix tables
This commit is contained in:
parent
fb854862cf
commit
e32a8c76bd
3 changed files with 18 additions and 2 deletions
src/app/pages
|
@ -63,6 +63,8 @@ export class NetworkComponent extends BasePageComponent implements AfterViewInit
|
|||
this.netStatsBytesOutChart.destroy();
|
||||
this.netStatsBytesOutChart = undefined;
|
||||
}
|
||||
|
||||
this.destroyTables();
|
||||
}
|
||||
else {
|
||||
this.initNetStatsHistoryChart();
|
||||
|
|
|
@ -51,8 +51,13 @@ export class PeersComponent extends BasePageComponent implements AfterViewInit {
|
|||
const sub: Subscription = this.daemonData.syncEnd.subscribe(() => {
|
||||
this.loadPublicNodesTable();
|
||||
});
|
||||
|
||||
const statusSub: Subscription = this.daemonService.onDaemonStatusChanged.subscribe((running: boolean) => {
|
||||
if (running) this.loadTables();
|
||||
else this.destroyTables();
|
||||
});
|
||||
|
||||
this.subscriptions.push(sub);
|
||||
this.subscriptions.push(sub, statusSub);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -109,7 +109,16 @@ export class TransactionsComponent extends BasePageComponent implements AfterVie
|
|||
|
||||
const onSyncEndSub: Subscription = this.daemonData.syncEnd.subscribe(() => this.refresh());
|
||||
|
||||
this.subscriptions.push(onSyncEndSub);
|
||||
const statusSub: Subscription = this.daemonService.onDaemonStatusChanged.subscribe((running: boolean) => {
|
||||
if (running) {
|
||||
this.loadTables();
|
||||
}
|
||||
else {
|
||||
this.destroyTables();
|
||||
}
|
||||
});
|
||||
|
||||
this.subscriptions.push(onSyncEndSub, statusSub);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue