mirror of
https://github.com/mempool/mempool.git
synced 2025-02-23 14:40:38 +01:00
If a channel is closed, show closing date instead of last update
This commit is contained in:
parent
9047cb5998
commit
5086f132f8
2 changed files with 8 additions and 3 deletions
|
@ -374,6 +374,7 @@ class ChannelsApi {
|
||||||
'transaction_vout': channel.transaction_vout,
|
'transaction_vout': channel.transaction_vout,
|
||||||
'closing_transaction_id': channel.closing_transaction_id,
|
'closing_transaction_id': channel.closing_transaction_id,
|
||||||
'closing_reason': channel.closing_reason,
|
'closing_reason': channel.closing_reason,
|
||||||
|
'closing_date': channel.closing_date,
|
||||||
'updated_at': channel.updated_at,
|
'updated_at': channel.updated_at,
|
||||||
'created': channel.created,
|
'created': channel.created,
|
||||||
'status': channel.status,
|
'status': channel.status,
|
||||||
|
|
|
@ -25,13 +25,17 @@
|
||||||
<table class="table table-borderless table-striped">
|
<table class="table table-borderless table-striped">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td i18n="address.total-sent">Created</td>
|
<td i18n="lightning.created">Created</td>
|
||||||
<td><app-timestamp [dateString]="channel.created"></app-timestamp></td>
|
<td><app-timestamp [dateString]="channel.created"></app-timestamp></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr *ngIf="channel.status !== 2">
|
||||||
<td i18n="address.total-sent">Last update</td>
|
<td i18n="lightning.last-update">Last update</td>
|
||||||
<td><app-timestamp [dateString]="channel.updated_at"></app-timestamp></td>
|
<td><app-timestamp [dateString]="channel.updated_at"></app-timestamp></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr *ngIf="channel.status === 2">
|
||||||
|
<td i18n="lightning.closing_date">Closing date</td>
|
||||||
|
<td><app-timestamp [dateString]="channel.closing_date"></app-timestamp></td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue