mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2024-11-19 09:50:36 +01:00
Changed Filters date pipe to match view format
This commit is contained in:
parent
c4c98fdf13
commit
7f275be31e
@ -159,7 +159,7 @@ export class CLNLiquidityAdsListComponent implements OnInit, OnDestroy {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'last_timestamp':
|
case 'last_timestamp':
|
||||||
rowToFilter = this.datePipe.transform(new Date((rowData.last_timestamp || 0) * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() || '';
|
rowToFilter = this.datePipe.transform(new Date((rowData.last_timestamp || 0) * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() || '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'compact_lease':
|
case 'compact_lease':
|
||||||
|
@ -141,7 +141,7 @@ export class CLNFailedTransactionsComponent implements OnInit, AfterViewInit, On
|
|||||||
switch (this.selFilterBy) {
|
switch (this.selFilterBy) {
|
||||||
case 'all':
|
case 'all':
|
||||||
rowToFilter = (rowData.received_time ? this.datePipe.transform(new Date(rowData.received_time * 1000), 'dd/MMM/YYYY HH:mm')!.toLowerCase() : '') +
|
rowToFilter = (rowData.received_time ? this.datePipe.transform(new Date(rowData.received_time * 1000), 'dd/MMM/YYYY HH:mm')!.toLowerCase() : '') +
|
||||||
(rowData.resolved_time ? this.datePipe.transform(new Date(rowData.resolved_time * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() : '') +
|
(rowData.resolved_time ? this.datePipe.transform(new Date(rowData.resolved_time * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() : '') +
|
||||||
(rowData.payment_hash ? rowData.payment_hash.toLowerCase() : '') +
|
(rowData.payment_hash ? rowData.payment_hash.toLowerCase() : '') +
|
||||||
(rowData.in_channel ? rowData.in_channel.toLowerCase() : '') + (rowData.out_channel ? rowData.out_channel.toLowerCase() : '') +
|
(rowData.in_channel ? rowData.in_channel.toLowerCase() : '') + (rowData.out_channel ? rowData.out_channel.toLowerCase() : '') +
|
||||||
(rowData.in_channel_alias ? rowData.in_channel_alias.toLowerCase() : '') + (rowData.out_channel_alias ? rowData.out_channel_alias.toLowerCase() : '') +
|
(rowData.in_channel_alias ? rowData.in_channel_alias.toLowerCase() : '') + (rowData.out_channel_alias ? rowData.out_channel_alias.toLowerCase() : '') +
|
||||||
@ -150,7 +150,7 @@ export class CLNFailedTransactionsComponent implements OnInit, AfterViewInit, On
|
|||||||
|
|
||||||
case 'received_time':
|
case 'received_time':
|
||||||
case 'resolved_time':
|
case 'resolved_time':
|
||||||
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() || '';
|
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() || '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'in_msatoshi':
|
case 'in_msatoshi':
|
||||||
|
@ -164,8 +164,8 @@ export class CLNForwardingHistoryComponent implements OnInit, OnChanges, AfterVi
|
|||||||
let rowToFilter = '';
|
let rowToFilter = '';
|
||||||
switch (this.selFilterBy) {
|
switch (this.selFilterBy) {
|
||||||
case 'all':
|
case 'all':
|
||||||
rowToFilter = (rowData.received_time ? this.datePipe.transform(new Date(rowData.received_time * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() + ' ' : '') +
|
rowToFilter = (rowData.received_time ? this.datePipe.transform(new Date(rowData.received_time * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() + ' ' : '') +
|
||||||
(rowData.resolved_time ? this.datePipe.transform(new Date(rowData.resolved_time * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() + ' ' : '') +
|
(rowData.resolved_time ? this.datePipe.transform(new Date(rowData.resolved_time * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() + ' ' : '') +
|
||||||
(rowData.in_channel ? rowData.in_channel.toLowerCase() + ' ' : '') + (rowData.out_channel ? rowData.out_channel.toLowerCase() + ' ' : '') +
|
(rowData.in_channel ? rowData.in_channel.toLowerCase() + ' ' : '') + (rowData.out_channel ? rowData.out_channel.toLowerCase() + ' ' : '') +
|
||||||
(rowData.in_channel_alias ? rowData.in_channel_alias.toLowerCase() + ' ' : '') + (rowData.out_channel_alias ? rowData.out_channel_alias.toLowerCase() + ' ' : '') +
|
(rowData.in_channel_alias ? rowData.in_channel_alias.toLowerCase() + ' ' : '') + (rowData.out_channel_alias ? rowData.out_channel_alias.toLowerCase() + ' ' : '') +
|
||||||
(rowData.in_msatoshi ? (rowData.in_msatoshi / 1000) + ' ' : '') + (rowData.out_msatoshi ? (rowData.out_msatoshi / 1000) + ' ' : '') + (rowData.fee ? rowData.fee + ' ' : '');
|
(rowData.in_msatoshi ? (rowData.in_msatoshi / 1000) + ' ' : '') + (rowData.out_msatoshi ? (rowData.out_msatoshi / 1000) + ' ' : '') + (rowData.fee ? rowData.fee + ' ' : '');
|
||||||
@ -173,7 +173,7 @@ export class CLNForwardingHistoryComponent implements OnInit, OnChanges, AfterVi
|
|||||||
|
|
||||||
case 'received_time':
|
case 'received_time':
|
||||||
case 'resolved_time':
|
case 'resolved_time':
|
||||||
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() || '';
|
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() || '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'in_msatoshi':
|
case 'in_msatoshi':
|
||||||
|
@ -135,14 +135,14 @@ export class CLNLocalFailedTransactionsComponent implements OnInit, AfterViewIni
|
|||||||
let rowToFilter = '';
|
let rowToFilter = '';
|
||||||
switch (this.selFilterBy) {
|
switch (this.selFilterBy) {
|
||||||
case 'all':
|
case 'all':
|
||||||
rowToFilter = (rowData.received_time ? this.datePipe.transform(new Date(rowData.received_time * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() : '') +
|
rowToFilter = (rowData.received_time ? this.datePipe.transform(new Date(rowData.received_time * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() : '') +
|
||||||
(rowData.in_channel_alias ? rowData.in_channel_alias.toLowerCase() : '') +
|
(rowData.in_channel_alias ? rowData.in_channel_alias.toLowerCase() : '') +
|
||||||
((rowData.failreason && this.CLNFailReason[rowData.failreason]) ? this.CLNFailReason[rowData.failreason].toLowerCase() : '') +
|
((rowData.failreason && this.CLNFailReason[rowData.failreason]) ? this.CLNFailReason[rowData.failreason].toLowerCase() : '') +
|
||||||
(rowData.in_msatoshi ? (rowData.in_msatoshi / 1000) : '');
|
(rowData.in_msatoshi ? (rowData.in_msatoshi / 1000) : '');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'received_time':
|
case 'received_time':
|
||||||
rowToFilter = this.datePipe.transform(new Date((rowData.received_time || 0) * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() || '';
|
rowToFilter = this.datePipe.transform(new Date((rowData.received_time || 0) * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() || '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'in_msatoshi':
|
case 'in_msatoshi':
|
||||||
|
@ -216,8 +216,8 @@ export class CLNLightningInvoicesTableComponent implements OnInit, AfterViewInit
|
|||||||
let rowToFilter = '';
|
let rowToFilter = '';
|
||||||
switch (this.selFilterBy) {
|
switch (this.selFilterBy) {
|
||||||
case 'all':
|
case 'all':
|
||||||
rowToFilter = this.datePipe.transform(new Date((rowData.paid_at || 0) * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase()! +
|
rowToFilter = this.datePipe.transform(new Date((rowData.paid_at || 0) * 1000), 'dd/MMM/y HH:mm')?.toLowerCase()! +
|
||||||
(this.datePipe.transform(new Date((rowData.expires_at || 0) * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase()) +
|
(this.datePipe.transform(new Date((rowData.expires_at || 0) * 1000), 'dd/MMM/y HH:mm')?.toLowerCase()) +
|
||||||
((rowData.bolt12) ? 'bolt12' : (rowData.bolt11) ? 'bolt11' : 'keysend') + JSON.stringify(rowData).toLowerCase();
|
((rowData.bolt12) ? 'bolt12' : (rowData.bolt11) ? 'bolt11' : 'keysend') + JSON.stringify(rowData).toLowerCase();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -227,7 +227,7 @@ export class CLNLightningInvoicesTableComponent implements OnInit, AfterViewInit
|
|||||||
|
|
||||||
case 'expires_at':
|
case 'expires_at':
|
||||||
case 'paid_at':
|
case 'paid_at':
|
||||||
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() || '';
|
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() || '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'type':
|
case 'type':
|
||||||
|
@ -161,7 +161,7 @@ export class CLNOfferBookmarksTableComponent implements OnInit, AfterViewInit, O
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'lastUpdatedAt':
|
case 'lastUpdatedAt':
|
||||||
rowToFilter = this.datePipe.transform(new Date(rowData.lastUpdatedAt || 0), 'dd/MMM/YYYY HH:mm')?.toLowerCase() || '';
|
rowToFilter = this.datePipe.transform(new Date(rowData.lastUpdatedAt || 0), 'dd/MMM/y HH:mm')?.toLowerCase() || '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'amountMSat':
|
case 'amountMSat':
|
||||||
|
@ -323,7 +323,7 @@ export class CLNLightningPaymentsComponent implements OnInit, AfterViewInit, OnD
|
|||||||
let rowToFilter = '';
|
let rowToFilter = '';
|
||||||
switch (this.selFilterBy) {
|
switch (this.selFilterBy) {
|
||||||
case 'all':
|
case 'all':
|
||||||
rowToFilter = ((rowData.created_at) ? this.datePipe.transform(new Date(rowData.created_at * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() : '') + ((rowData.bolt12) ? 'bolt12' : (rowData.bolt11) ? 'bolt11' : 'keysend') + JSON.stringify(rowData).toLowerCase();
|
rowToFilter = ((rowData.created_at) ? this.datePipe.transform(new Date(rowData.created_at * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() : '') + ((rowData.bolt12) ? 'bolt12' : (rowData.bolt11) ? 'bolt11' : 'keysend') + JSON.stringify(rowData).toLowerCase();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'status':
|
case 'status':
|
||||||
@ -331,7 +331,7 @@ export class CLNLightningPaymentsComponent implements OnInit, AfterViewInit, OnD
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'created_at':
|
case 'created_at':
|
||||||
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() || '';
|
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() || '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'msatoshi_sent':
|
case 'msatoshi_sent':
|
||||||
|
@ -103,11 +103,11 @@ export class ECLOnChainTransactionHistoryComponent implements OnInit, OnDestroy
|
|||||||
let rowToFilter = '';
|
let rowToFilter = '';
|
||||||
switch (this.selFilterBy) {
|
switch (this.selFilterBy) {
|
||||||
case 'all':
|
case 'all':
|
||||||
rowToFilter = ((rowData.timestamp) ? this.datePipe.transform(new Date(rowData.timestamp * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() : '') + JSON.stringify(rowData).toLowerCase();
|
rowToFilter = ((rowData.timestamp) ? this.datePipe.transform(new Date(rowData.timestamp * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() : '') + JSON.stringify(rowData).toLowerCase();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'timestamp':
|
case 'timestamp':
|
||||||
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() || '';
|
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() || '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -155,11 +155,11 @@ export class ECLForwardingHistoryComponent implements OnInit, OnChanges, AfterVi
|
|||||||
let rowToFilter = '';
|
let rowToFilter = '';
|
||||||
switch (this.selFilterBy) {
|
switch (this.selFilterBy) {
|
||||||
case 'all':
|
case 'all':
|
||||||
rowToFilter = ((rowData.timestamp) ? this.datePipe.transform(new Date(rowData.timestamp), 'dd/MMM/YYYY HH:mm')?.toLowerCase() : '') + JSON.stringify(rowData).toLowerCase();
|
rowToFilter = ((rowData.timestamp) ? this.datePipe.transform(new Date(rowData.timestamp), 'dd/MMM/y HH:mm')?.toLowerCase() : '') + JSON.stringify(rowData).toLowerCase();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'timestamp':
|
case 'timestamp':
|
||||||
rowToFilter = this.datePipe.transform(new Date((rowData.timestamp || 0)), 'dd/MMM/YYYY HH:mm')?.toLowerCase() || '';
|
rowToFilter = this.datePipe.transform(new Date((rowData.timestamp || 0)), 'dd/MMM/y HH:mm')?.toLowerCase() || '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'fee':
|
case 'fee':
|
||||||
|
@ -191,7 +191,7 @@ export class ECLLightningInvoicesComponent implements OnInit, AfterViewInit, OnD
|
|||||||
let rowToFilter = '';
|
let rowToFilter = '';
|
||||||
switch (this.selFilterBy) {
|
switch (this.selFilterBy) {
|
||||||
case 'all':
|
case 'all':
|
||||||
rowToFilter = ((rowData.timestamp) ? this.datePipe.transform(new Date(rowData.timestamp * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() : '') + JSON.stringify(rowData).toLowerCase();
|
rowToFilter = ((rowData.timestamp) ? this.datePipe.transform(new Date(rowData.timestamp * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() : '') + JSON.stringify(rowData).toLowerCase();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'status':
|
case 'status':
|
||||||
@ -201,7 +201,7 @@ export class ECLLightningInvoicesComponent implements OnInit, AfterViewInit, OnD
|
|||||||
case 'timestamp':
|
case 'timestamp':
|
||||||
case 'expiresAt':
|
case 'expiresAt':
|
||||||
case 'receivedAt':
|
case 'receivedAt':
|
||||||
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() || '';
|
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() || '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'amount':
|
case 'amount':
|
||||||
|
@ -135,11 +135,11 @@ export class ECLLightningPaymentsComponent implements OnInit, AfterViewInit, OnD
|
|||||||
let rowToFilter = '';
|
let rowToFilter = '';
|
||||||
switch (this.selFilterBy) {
|
switch (this.selFilterBy) {
|
||||||
case 'all':
|
case 'all':
|
||||||
rowToFilter = ((rowData.firstPartTimestamp) ? this.datePipe.transform(new Date(rowData.firstPartTimestamp), 'dd/MMM/YYYY HH:mm')?.toLowerCase() : '') + JSON.stringify(rowData).toLowerCase();
|
rowToFilter = ((rowData.firstPartTimestamp) ? this.datePipe.transform(new Date(rowData.firstPartTimestamp), 'dd/MMM/y HH:mm')?.toLowerCase() : '') + JSON.stringify(rowData).toLowerCase();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'firstPartTimestamp':
|
case 'firstPartTimestamp':
|
||||||
rowToFilter = this.datePipe.transform(new Date(rowData.firstPartTimestamp || 0), 'dd/MMM/YYYY HH:mm')?.toLowerCase() || '';
|
rowToFilter = this.datePipe.transform(new Date(rowData.firstPartTimestamp || 0), 'dd/MMM/y HH:mm')?.toLowerCase() || '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -133,7 +133,7 @@ export class OnChainTransactionHistoryComponent implements OnInit, OnChanges, On
|
|||||||
let rowToFilter = '';
|
let rowToFilter = '';
|
||||||
switch (this.selFilterBy) {
|
switch (this.selFilterBy) {
|
||||||
case 'all':
|
case 'all':
|
||||||
rowToFilter = ((rowData.time_stamp) ? this.datePipe.transform(new Date(rowData.time_stamp * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() : '') + JSON.stringify(rowData).toLowerCase();
|
rowToFilter = ((rowData.time_stamp) ? this.datePipe.transform(new Date(rowData.time_stamp * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() : '') + JSON.stringify(rowData).toLowerCase();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'time_stamp':
|
case 'time_stamp':
|
||||||
|
@ -150,11 +150,11 @@ export class ForwardingHistoryComponent implements OnInit, AfterViewInit, OnChan
|
|||||||
let rowToFilter = '';
|
let rowToFilter = '';
|
||||||
switch (this.selFilterBy) {
|
switch (this.selFilterBy) {
|
||||||
case 'all':
|
case 'all':
|
||||||
rowToFilter = ((rowData.timestamp) ? this.datePipe.transform(new Date(rowData.timestamp * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() : '') + JSON.stringify(rowData).toLowerCase();
|
rowToFilter = ((rowData.timestamp) ? this.datePipe.transform(new Date(rowData.timestamp * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() : '') + JSON.stringify(rowData).toLowerCase();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'timestamp':
|
case 'timestamp':
|
||||||
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() || '';
|
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() || '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -187,13 +187,13 @@ export class LightningInvoicesComponent implements OnInit, AfterViewInit, OnDest
|
|||||||
let rowToFilter = '';
|
let rowToFilter = '';
|
||||||
switch (this.selFilterBy) {
|
switch (this.selFilterBy) {
|
||||||
case 'all':
|
case 'all':
|
||||||
rowToFilter = (rowData.creation_date ? this.datePipe.transform(new Date(rowData.creation_date * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() : '')! +
|
rowToFilter = (rowData.creation_date ? this.datePipe.transform(new Date(rowData.creation_date * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() : '')! +
|
||||||
(rowData.settle_date ? this.datePipe.transform(new Date(rowData.settle_date * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() : '') + JSON.stringify(rowData).toLowerCase();
|
(rowData.settle_date ? this.datePipe.transform(new Date(rowData.settle_date * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() : '') + JSON.stringify(rowData).toLowerCase();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'creation_date':
|
case 'creation_date':
|
||||||
case 'settle_date':
|
case 'settle_date':
|
||||||
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() || '';
|
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() || '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'private':
|
case 'private':
|
||||||
|
@ -444,7 +444,7 @@ export class LightningPaymentsComponent implements OnInit, AfterViewInit, OnDest
|
|||||||
let rowToFilter = '';
|
let rowToFilter = '';
|
||||||
switch (this.selFilterBy) {
|
switch (this.selFilterBy) {
|
||||||
case 'all':
|
case 'all':
|
||||||
rowToFilter = ((rowData.creation_date) ? this.datePipe.transform(new Date(rowData.creation_date * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() : '') + JSON.stringify(rowData).toLowerCase();
|
rowToFilter = ((rowData.creation_date) ? this.datePipe.transform(new Date(rowData.creation_date * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() : '') + JSON.stringify(rowData).toLowerCase();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'status':
|
case 'status':
|
||||||
@ -453,7 +453,7 @@ export class LightningPaymentsComponent implements OnInit, AfterViewInit, OnDest
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'creation_date':
|
case 'creation_date':
|
||||||
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) * 1000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() || '';
|
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) * 1000), 'dd/MMM/y HH:mm')?.toLowerCase() || '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'failure_reason':
|
case 'failure_reason':
|
||||||
|
@ -111,7 +111,7 @@ export class SwapsComponent implements OnInit, AfterViewInit, OnChanges, OnDestr
|
|||||||
|
|
||||||
case 'initiation_time':
|
case 'initiation_time':
|
||||||
case 'last_update_time':
|
case 'last_update_time':
|
||||||
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) / 1000000), 'dd/MMM/YYYY HH:mm')?.toLowerCase() || '';
|
rowToFilter = this.datePipe.transform(new Date((rowData[this.selFilterBy] || 0) / 1000000), 'dd/MMM/y HH:mm')?.toLowerCase() || '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user