Hide balance unless insufficient for max cost
This commit is contained in:
		
							parent
							
								
									ed12e30517
								
							
						
					
					
						commit
						d6044331e1
					
				@ -228,20 +228,22 @@
 | 
				
			|||||||
              </ng-container>
 | 
					              </ng-container>
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
              <!-- USER BALANCE -->
 | 
					              <!-- USER BALANCE -->
 | 
				
			||||||
              <tr class="group-first group-last" style="border-top: 1px dashed grey">
 | 
					              <ng-container *ngIf="estimate.userBalance < maxCost">
 | 
				
			||||||
                <td class="item">
 | 
					                <tr class="group-first group-last" style="border-top: 1px dashed grey">
 | 
				
			||||||
                  Available balance
 | 
					                  <td class="item">
 | 
				
			||||||
                </td>
 | 
					                    Available balance
 | 
				
			||||||
                <td class="amt">
 | 
					                  </td>
 | 
				
			||||||
                  {{ estimate.userBalance | number }}
 | 
					                  <td class="amt">
 | 
				
			||||||
                </td>
 | 
					                    {{ estimate.userBalance | number }}
 | 
				
			||||||
                <td class="units">
 | 
					                  </td>
 | 
				
			||||||
                  <span class="symbol" i18n="shared.sats|sats">sats</span>
 | 
					                  <td class="units">
 | 
				
			||||||
                  <span class="fiat">
 | 
					                    <span class="symbol" i18n="shared.sats|sats">sats</span>
 | 
				
			||||||
                    <app-fiat [value]="estimate.userBalance" [colorClass]="estimate.userBalance < maxCost ? 'red-color' : 'green-color'"></app-fiat>
 | 
					                    <span class="fiat">
 | 
				
			||||||
                  </span>
 | 
					                      <app-fiat [value]="estimate.userBalance" [colorClass]="estimate.userBalance < maxCost ? 'red-color' : 'green-color'"></app-fiat>
 | 
				
			||||||
                </td>
 | 
					                    </span>
 | 
				
			||||||
              </tr>
 | 
					                  </td>
 | 
				
			||||||
 | 
					                </tr>
 | 
				
			||||||
 | 
					              </ng-container>
 | 
				
			||||||
            </tbody>
 | 
					            </tbody>
 | 
				
			||||||
          </table>
 | 
					          </table>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user