diff --git a/src/app/cln/reports/transactions/transactions-report.component.ts b/src/app/cln/reports/transactions/transactions-report.component.ts index 617d6960..2c9d986a 100644 --- a/src/app/cln/reports/transactions/transactions-report.component.ts +++ b/src/app/cln/reports/transactions/transactions-report.component.ts @@ -54,19 +54,11 @@ export class CLNTransactionsReportComponent implements OnInit, OnDestroy { this.showYAxisLabel = !(this.screenSize === ScreenSizeEnum.XS || this.screenSize === ScreenSizeEnum.SM); this.store.select(clnPageSettings).pipe(takeUntil(this.unSubs[0])). subscribe((settings: { pageSettings: PageSettings[], apiCallStatus: ApiCallStatusPayload }) => { - if (settings.apiCallStatus.status === APICallStatusEnum.ERROR) { - if (this.screenSize === ScreenSizeEnum.XS || this.screenSize === ScreenSizeEnum.SM) { - this.displayedColumns = ['date', 'amount_paid', 'amount_received']; - } else { - this.displayedColumns = ['date', 'amount_paid', 'num_payments', 'amount_received', 'num_invoices']; - } + this.tableSetting = settings.pageSettings.find((page) => page.pageId === this.PAGE_ID)?.tables.find((table) => table.tableId === this.tableSetting.tableId) || CLN_DEFAULT_PAGE_SETTINGS.find((page) => page.pageId === this.PAGE_ID)?.tables.find((table) => table.tableId === this.tableSetting.tableId)!; + if (this.screenSize === ScreenSizeEnum.XS || this.screenSize === ScreenSizeEnum.SM) { + this.displayedColumns = JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)); } else { - this.tableSetting = settings.pageSettings.find((page) => page.pageId === this.PAGE_ID)?.tables.find((table) => table.tableId === this.tableSetting.tableId) || CLN_DEFAULT_PAGE_SETTINGS.find((page) => page.pageId === this.PAGE_ID)?.tables.find((table) => table.tableId === this.tableSetting.tableId)!; - if (this.screenSize === ScreenSizeEnum.XS || this.screenSize === ScreenSizeEnum.SM) { - this.displayedColumns = JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)); - } else { - this.displayedColumns = JSON.parse(JSON.stringify(this.tableSetting.columnSelection)); - } + this.displayedColumns = JSON.parse(JSON.stringify(this.tableSetting.columnSelection)); } this.displayedColumns.push('actions'); this.logger.info(this.displayedColumns); diff --git a/src/app/eclair/reports/transactions/transactions-report.component.ts b/src/app/eclair/reports/transactions/transactions-report.component.ts index 5e76c85a..379eda71 100644 --- a/src/app/eclair/reports/transactions/transactions-report.component.ts +++ b/src/app/eclair/reports/transactions/transactions-report.component.ts @@ -54,19 +54,11 @@ export class ECLTransactionsReportComponent implements OnInit, OnDestroy { this.showYAxisLabel = !(this.screenSize === ScreenSizeEnum.XS || this.screenSize === ScreenSizeEnum.SM); this.store.select(eclPageSettings).pipe(takeUntil(this.unSubs[0])). subscribe((settings: { pageSettings: PageSettings[], apiCallStatus: ApiCallStatusPayload }) => { - if (settings.apiCallStatus.status === APICallStatusEnum.ERROR) { - if (this.screenSize === ScreenSizeEnum.XS || this.screenSize === ScreenSizeEnum.SM) { - this.displayedColumns = ['date', 'amount_paid', 'amount_received']; - } else { - this.displayedColumns = ['date', 'amount_paid', 'num_payments', 'amount_received', 'num_invoices']; - } + this.tableSetting = settings.pageSettings.find((page) => page.pageId === this.PAGE_ID)?.tables.find((table) => table.tableId === this.tableSetting.tableId) || ECL_DEFAULT_PAGE_SETTINGS.find((page) => page.pageId === this.PAGE_ID)?.tables.find((table) => table.tableId === this.tableSetting.tableId)!; + if (this.screenSize === ScreenSizeEnum.XS || this.screenSize === ScreenSizeEnum.SM) { + this.displayedColumns = JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)); } else { - this.tableSetting = settings.pageSettings.find((page) => page.pageId === this.PAGE_ID)?.tables.find((table) => table.tableId === this.tableSetting.tableId) || ECL_DEFAULT_PAGE_SETTINGS.find((page) => page.pageId === this.PAGE_ID)?.tables.find((table) => table.tableId === this.tableSetting.tableId)!; - if (this.screenSize === ScreenSizeEnum.XS || this.screenSize === ScreenSizeEnum.SM) { - this.displayedColumns = JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)); - } else { - this.displayedColumns = JSON.parse(JSON.stringify(this.tableSetting.columnSelection)); - } + this.displayedColumns = JSON.parse(JSON.stringify(this.tableSetting.columnSelection)); } this.displayedColumns.push('actions'); this.logger.info(this.displayedColumns); diff --git a/src/app/lnd/peers-channels/peers/peers.component.html b/src/app/lnd/peers-channels/peers/peers.component.html index 690cd38d..33b03dd2 100644 --- a/src/app/lnd/peers-channels/peers/peers.component.html +++ b/src/app/lnd/peers-channels/peers/peers.component.html @@ -17,25 +17,44 @@
Alias | -{{peer?.alias}} | +{{peer?.alias}} | Public Key | -{{peer?.pub_key}} | +{{peer?.pub_key}} | +Address | +{{peer?.address}} | +Sync Type | +{{peer?.sync_type | camelcaseWithReplace:'sync':'_'}} | +Inbound | +{{peer?.inbound ? 'Yes' : 'No'}} | +Bytes Sent | +{{peer?.bytes_sent | number}} | +Bytes Received | +{{peer?.bytes_recv | number}} | - Sats Sent | -{{peer?.sat_sent | number}} | +Sats Sent | +{{peer?.sat_sent | number}} | + | Sats Received | -{{peer?.sat_recv | number}} | +{{peer?.sat_recv | number}} | Ping Time (µs) | -{{peer?.ping_time | number}} + | Ping Time (µs) | +{{peer?.ping_time | number}} |
---|