Minor adjustments
This commit is contained in:
		
							parent
							
								
									3b8de5057c
								
							
						
					
					
						commit
						0722c221c7
					
				| @ -36,10 +36,10 @@ | ||||
|     </button> | ||||
|   </ng-template> | ||||
|   <ng-template [ngIf]="results.otherNetworks.length"> | ||||
|     <div class="card-title danger" i18n="search.other-networks">Other Networks Address</div> | ||||
|     <div class="card-title danger" i18n="search.other-networks">Other Network Address</div> | ||||
|     <ng-template ngFor [ngForOf]="results.otherNetworks" let-otherNetwork let-i="index"> | ||||
|       <button (click)="clickItem(results.hashQuickMatch + i)" [class.active]="(results.hashQuickMatch + i) === activeIdx" [class.inactive]="!otherNetwork.isNetworkAvailable" type="button" role="option" class="dropdown-item"> | ||||
|         <ngb-highlight [result]="(otherNetwork.address + ' (' + otherNetwork.network + ')') | shortenString : isMobile ? 25 : 36" [term]="otherNetwork.network"></ngb-highlight> | ||||
|         <ng-container *ngTemplateOutlet="goTo; context: { $implicit: otherNetwork.address| shortenString : isMobile ? 20 : 25 }"></ng-container> <b>({{ otherNetwork.network.charAt(0).toUpperCase() + otherNetwork.network.slice(1) }})</b> | ||||
|       </button> | ||||
|     </ng-template> | ||||
|   </ng-template> | ||||
|  | ||||
| @ -45,6 +45,9 @@ export class SearchResultsComponent implements OnChanges { | ||||
|         break; | ||||
|       case 'Enter': | ||||
|         event.preventDefault(); | ||||
|         if (this.resultsFlattened[this.activeIdx]?.isNetworkAvailable === false) { | ||||
|           return; | ||||
|         } | ||||
|         if (this.resultsFlattened[this.activeIdx]) { | ||||
|           this.selectedResult.emit(this.resultsFlattened[this.activeIdx]); | ||||
|         } else { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user