mirror of
https://github.com/everoddandeven/monerod-gui.git
synced 2024-12-22 11:39:25 +00:00
Fix linting tests
This commit is contained in:
parent
b5a3d2e73e
commit
68927d3276
4 changed files with 17 additions and 13 deletions
|
@ -139,7 +139,7 @@ export class DetailComponent implements AfterViewInit, OnDestroy {
|
|||
|
||||
this.cards = this.createCards();
|
||||
|
||||
this.subscriptions.push(<Subscription>this.daemonData.syncStart.subscribe((info) => {
|
||||
const syncStartSub: Subscription = this.daemonData.syncStart.subscribe((info) => {
|
||||
if(!info.first) {
|
||||
return;
|
||||
}
|
||||
|
@ -147,14 +147,15 @@ export class DetailComponent implements AfterViewInit, OnDestroy {
|
|||
this.ngZone.run(() => {
|
||||
this.cards = this.createCards();
|
||||
});
|
||||
});
|
||||
|
||||
}));
|
||||
|
||||
this.subscriptions.push(<Subscription>this.daemonData.syncInfoRefreshEnd.subscribe(() => {
|
||||
const syncInfoRefreshEndSub: Subscription = this.daemonData.syncInfoRefreshEnd.subscribe(() => {
|
||||
this.refreshTables();
|
||||
|
||||
this.cards = this.createCards();
|
||||
}));
|
||||
});
|
||||
|
||||
this.subscriptions.push(syncStartSub, syncInfoRefreshEndSub);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -41,13 +41,15 @@ export class NetworkComponent implements AfterViewInit, OnDestroy {
|
|||
new NavbarLink('pills-limits-tab', '#pills-limit', 'pills-limit', false, 'Limit')
|
||||
];
|
||||
|
||||
this.subscriptions.push(<Subscription>this.daemonData.netStatsRefreshEnd.subscribe(() => {
|
||||
const netStatsRefreshStartSub: Subscription = this.daemonData.netStatsRefreshEnd.subscribe(() => {
|
||||
this.refreshNetStatsHistory();
|
||||
}));
|
||||
});
|
||||
|
||||
this.subscriptions.push(<Subscription>this.daemonData.syncEnd.subscribe(() => {
|
||||
const syncEndSub: Subscription = this.daemonData.syncEnd.subscribe(() => {
|
||||
this.loadConnectionsTable();
|
||||
}));
|
||||
});
|
||||
|
||||
this.subscriptions.push(netStatsRefreshStartSub, syncEndSub);
|
||||
|
||||
this.daemonService.onDaemonStatusChanged.subscribe((running: boolean) => {
|
||||
if (!running) {
|
||||
|
|
|
@ -66,7 +66,7 @@ export class PeersComponent implements AfterViewInit, OnDestroy {
|
|||
$publicNodesTable.bootstrapTable('load', this.daemonData.publicNodes);
|
||||
$peerListTable.bootstrapTable('load', this.daemonData.peerList);
|
||||
|
||||
const sub = <Subscription>this.daemonData.syncEnd.subscribe(() => {
|
||||
const sub: Subscription = this.daemonData.syncEnd.subscribe(() => {
|
||||
$publicNodesTable.bootstrapTable('load', this.daemonData.publicNodes);
|
||||
//$peerListTable.bootstrapTable('load', this.daemonData.peerList);
|
||||
});
|
||||
|
|
|
@ -100,9 +100,10 @@ export class TransactionsComponent implements AfterViewInit, OnDestroy {
|
|||
this.navbarService.setLinks(this.navbarLinks);
|
||||
|
||||
this.initTables();
|
||||
this.subscriptions.push(<Subscription>this.daemonData.syncEnd.subscribe(() => {
|
||||
this.refreshTables();
|
||||
}));
|
||||
|
||||
const onSyncEndSub: Subscription = this.daemonData.syncEnd.subscribe(() => this.refreshTables());
|
||||
|
||||
this.subscriptions.push(onSyncEndSub);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue