Make sure "other" is not clickable
This commit is contained in:
		
							parent
							
								
									b4bcd84a53
								
							
						
					
					
						commit
						420ff16c2b
					
				| @ -24,20 +24,20 @@ | |||||||
|     <table class="table table-borderless text-center m-auto" style="max-width: 900px"> |     <table class="table table-borderless text-center m-auto" style="max-width: 900px"> | ||||||
|       <thead> |       <thead> | ||||||
|         <tr> |         <tr> | ||||||
|           <th class="text-left rank" *ngIf="!isMobile()" i18n="mining.rank">Rank</th> |           <th class="text-left rank" i18n="mining.rank">Rank</th> | ||||||
|           <th class="text-left name" i18n="lightning.as-name">Name</th> |           <th class="text-left name" i18n="lightning.as-name">Name</th> | ||||||
|           <th class="text-right share" *ngIf="!isMobile()" i18n="lightning.share">Share</th> |           <th class="text-right share" i18n="lightning.share">Share</th> | ||||||
|           <th class="text-right nodes" i18n="lightning.nodes-count">Nodes</th> |           <th class="text-right nodes" i18n="lightning.nodes-count">Nodes</th> | ||||||
|           <th class="text-right capacity" i18n="lightning.capacity">Capacity</th> |           <th class="text-right capacity" i18n="lightning.capacity">Capacity</th> | ||||||
|         </tr> |         </tr> | ||||||
|       </thead> |       </thead> | ||||||
|       <tbody [attr.data-cy]="'pools-table'" *ngIf="(nodesPerCountryObservable$ | async) as countries"> |       <tbody [attr.data-cy]="'pools-table'" *ngIf="(nodesPerCountryObservable$ | async) as countries"> | ||||||
|         <tr *ngFor="let country of countries"> |         <tr *ngFor="let country of countries"> | ||||||
|           <td class="text-left rank" *ngIf="!isMobile()">{{ country.rank }}</td> |           <td class="text-left rank">{{ country.rank }}</td> | ||||||
|           <td class="text-left text-truncate name"> |           <td class="text-left text-truncate name"> | ||||||
|             <a [routerLink]="['/lightning/nodes/country' | relativeUrl, country.iso]">{{ country.name.en }}</a> |             <a [routerLink]="['/lightning/nodes/country' | relativeUrl, country.iso]">{{ country.name.en }}</a> | ||||||
|           </td> |           </td> | ||||||
|           <td class="text-right share" *ngIf="!isMobile()">{{ country.share }}%</td> |           <td class="text-right share">{{ country.share }}%</td> | ||||||
|           <td class="text-right nodes">{{ country.count }}</td> |           <td class="text-right nodes">{{ country.count }}</td> | ||||||
|           <td class="text-right capacity"> |           <td class="text-right capacity"> | ||||||
|             <app-amount *ngIf="country.capacity > 100000000; else smallchannel" [satoshis]="country.capacity" [digitsInfo]="'1.2-2'" [noFiat]="true"></app-amount> |             <app-amount *ngIf="country.capacity > 100000000; else smallchannel" [satoshis]="country.capacity" [digitsInfo]="'1.2-2'" [noFiat]="true"></app-amount> | ||||||
|  | |||||||
| @ -130,8 +130,9 @@ export class NodesPerCountryChartComponent implements OnInit { | |||||||
|         formatter: () => { |         formatter: () => { | ||||||
|           return `<b style="color: white">${'Other'} (${totalShareOther.toFixed(2)}%)</b><br>` + |           return `<b style="color: white">${'Other'} (${totalShareOther.toFixed(2)}%)</b><br>` + | ||||||
|             totalNodeOther.toString() + ` nodes`; |             totalNodeOther.toString() + ` nodes`; | ||||||
|         } |  | ||||||
|         }, |         }, | ||||||
|  |       }, | ||||||
|  |       data: 9999 as any | ||||||
|     } as PieSeriesOption); |     } as PieSeriesOption); | ||||||
| 
 | 
 | ||||||
|     return data; |     return data; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user