If a channel is closed, show closing date instead of last update
This commit is contained in:
		
							parent
							
								
									ea581c9499
								
							
						
					
					
						commit
						a33b31a8ab
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user