[Node page] Show message if there is no channels in the list to display
This commit is contained in:
		
							parent
							
								
									479f635754
								
							
						
					
					
						commit
						886e7e6638
					
				| @ -10,7 +10,7 @@ | |||||||
|     </div> |     </div> | ||||||
|   </form> |   </form> | ||||||
| 
 | 
 | ||||||
|   <table class="table table-borderless"> |   <table class="table table-borderless" *ngIf="response.channels.length > 1"> | ||||||
|     <ng-container *ngTemplateOutlet="tableHeader"></ng-container> |     <ng-container *ngTemplateOutlet="tableHeader"></ng-container> | ||||||
|     <tbody> |     <tbody> | ||||||
|       <tr *ngFor="let channel of response.channels; let i = index;"> |       <tr *ngFor="let channel of response.channels; let i = index;"> | ||||||
| @ -19,7 +19,11 @@ | |||||||
|     </tbody> |     </tbody> | ||||||
|   </table> |   </table> | ||||||
|    |    | ||||||
|   <ngb-pagination class="pagination-container float-right" [size]="paginationSize" [collectionSize]="response.totalItems" [rotate]="true" [pageSize]="itemsPerPage" [(page)]="page" (pageChange)="pageChange(page)" [maxSize]="paginationMaxSize" [boundaryLinks]="true" [ellipses]="false"></ngb-pagination> |   <ngb-pagination *ngIf="response.channels.length > 1" class="pagination-container float-right" [size]="paginationSize" [collectionSize]="response.totalItems" [rotate]="true" [pageSize]="itemsPerPage" [(page)]="page" (pageChange)="pageChange(page)" [maxSize]="paginationMaxSize" [boundaryLinks]="true" [ellipses]="false"></ngb-pagination> | ||||||
|  | 
 | ||||||
|  |   <table class="table table-borderless" *ngIf="response.channels.length === 0"> | ||||||
|  |     <div class="d-flex justify-content-center" i18n="lightning.empty-channels-list">No channels to display</div> | ||||||
|  |   </table> | ||||||
| </div> | </div> | ||||||
|    |    | ||||||
| <ng-template #tableHeader> | <ng-template #tableHeader> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user