From 5086f132f8dad3dfc0cf3eb3ba9dca17a0a86f45 Mon Sep 17 00:00:00 2001 From: nymkappa Date: Sun, 4 Sep 2022 19:12:01 +0200 Subject: [PATCH] If a channel is closed, show closing date instead of last update --- backend/src/api/explorer/channels.api.ts | 1 + .../src/app/lightning/channel/channel.component.html | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/backend/src/api/explorer/channels.api.ts b/backend/src/api/explorer/channels.api.ts index b396e4808..6b4a8d02c 100644 --- a/backend/src/api/explorer/channels.api.ts +++ b/backend/src/api/explorer/channels.api.ts @@ -374,6 +374,7 @@ class ChannelsApi { 'transaction_vout': channel.transaction_vout, 'closing_transaction_id': channel.closing_transaction_id, 'closing_reason': channel.closing_reason, + 'closing_date': channel.closing_date, 'updated_at': channel.updated_at, 'created': channel.created, 'status': channel.status, diff --git a/frontend/src/app/lightning/channel/channel.component.html b/frontend/src/app/lightning/channel/channel.component.html index 2824b8dba..9a0c424fb 100644 --- a/frontend/src/app/lightning/channel/channel.component.html +++ b/frontend/src/app/lightning/channel/channel.component.html @@ -25,13 +25,17 @@ - + - - + + + + + +
CreatedCreated
Last update
Last update
Closing date