mirror of
https://github.com/mempool/mempool.git
synced 2025-02-22 22:25:34 +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,
|
||||
'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,
|
||||
|
|
|
@ -25,13 +25,17 @@
|
|||
<table class="table table-borderless table-striped">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td i18n="address.total-sent">Created</td>
|
||||
<td i18n="lightning.created">Created</td>
|
||||
<td><app-timestamp [dateString]="channel.created"></app-timestamp></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td i18n="address.total-sent">Last update</td>
|
||||
<tr *ngIf="channel.status !== 2">
|
||||
<td i18n="lightning.last-update">Last update</td>
|
||||
<td><app-timestamp [dateString]="channel.updated_at"></app-timestamp></td>
|
||||
</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>
|
||||
</table>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue