Node AS table overflow fix
This commit is contained in:
		
							parent
							
								
									646999eb56
								
							
						
					
					
						commit
						2187d96c25
					
				| @ -83,17 +83,19 @@ | |||||||
|             </tr> |             </tr> | ||||||
|             <tr> |             <tr> | ||||||
|               <td i18n="isp" class="text-truncate label">ISP</td> |               <td i18n="isp" class="text-truncate label">ISP</td> | ||||||
|               <td *ngIf="node.as_number"> |               <td *ngIf="node.as_number else unknownAS"> | ||||||
|                 <a class="d-block text-wrap" [routerLink]="['/lightning/nodes/isp' | relativeUrl, node.as_number]"> |                 <a class="d-block text-wrap" [routerLink]="['/lightning/nodes/isp' | relativeUrl, node.as_number]"> | ||||||
|                   {{ node.as_organization }} [ASN {{node.as_number}}] |                   {{ node.as_organization }} [ASN {{node.as_number}}] | ||||||
|                 </a>                 |                 </a>                 | ||||||
|               </td> |               </td> | ||||||
|               <td *ngIf="clearnetSocketCount === 0 && torSocketCount > 0"> |               <ng-template #unknownAS> | ||||||
|                 <span class="badge badge-success" placement="bottom" i18n="tor">Exclusively on Tor</span> |                 <td *ngIf="clearnetSocketCount === 0 && torSocketCount > 0"> | ||||||
|               </td> |                   <span class="badge badge-success" placement="bottom" i18n="tor">Exclusively on Tor</span> | ||||||
|               <td *ngIf="node.sockets.length === 0"> |                 </td> | ||||||
|                 <span i18n="unknown">Unknown</span> |                 <td *ngIf="node.sockets.length === 0"> | ||||||
|               </td> |                   <span i18n="unknown">Unknown</span> | ||||||
|  |                 </td> | ||||||
|  |               </ng-template> | ||||||
|             </tr> |             </tr> | ||||||
|           </tbody> |           </tbody> | ||||||
|         </table> |         </table> | ||||||
|  | |||||||
| @ -58,6 +58,8 @@ export class NodeComponent implements OnInit { | |||||||
|         }), |         }), | ||||||
|         map((node) => { |         map((node) => { | ||||||
|           this.seoService.setTitle($localize`Node: ${node.alias}`); |           this.seoService.setTitle($localize`Node: ${node.alias}`); | ||||||
|  |           this.clearnetSocketCount = 0; | ||||||
|  |           this.torSocketCount = 0; | ||||||
| 
 | 
 | ||||||
|           const socketsObject = []; |           const socketsObject = []; | ||||||
|           for (const socket of node.sockets.split(',')) { |           for (const socket of node.sockets.split(',')) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user