Try fix tables
Some checks are pending
MacOS Build / build (20) (push) Waiting to run
MacOS 12 - x64 DMG Build / build (20) (push) Waiting to run
Ubuntu 22.04 - AppImage Build / build (20) (push) Waiting to run
Ubuntu 22.04 - x64 DEB Build / build (20) (push) Waiting to run
Ubuntu 24.04 - x64 DEB Build / build (20) (push) Waiting to run
Windows Installer Build / build (20) (push) Waiting to run
Windows Portable Build / build (20) (push) Waiting to run

This commit is contained in:
everoddandeven 2024-11-01 11:51:47 +01:00
parent fb854862cf
commit e32a8c76bd
3 changed files with 18 additions and 2 deletions

View file

@ -63,6 +63,8 @@ export class NetworkComponent extends BasePageComponent implements AfterViewInit
this.netStatsBytesOutChart.destroy();
this.netStatsBytesOutChart = undefined;
}
this.destroyTables();
}
else {
this.initNetStatsHistoryChart();

View file

@ -52,7 +52,12 @@ export class PeersComponent extends BasePageComponent implements AfterViewInit {
this.loadPublicNodesTable();
});
this.subscriptions.push(sub);
const statusSub: Subscription = this.daemonService.onDaemonStatusChanged.subscribe((running: boolean) => {
if (running) this.loadTables();
else this.destroyTables();
});
this.subscriptions.push(sub, statusSub);
});
}

View file

@ -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);
});
}