Made decimals more nice and clear.
This commit is contained in:
		
							parent
							
								
									7186426441
								
							
						
					
					
						commit
						9851ae7169
					
				@ -50,12 +50,12 @@
 | 
				
			|||||||
              <ng-template [ngIf]="fees" [ngIfElse]="loadingFees">
 | 
					              <ng-template [ngIf]="fees" [ngIfElse]="loadingFees">
 | 
				
			||||||
                <tr>
 | 
					                <tr>
 | 
				
			||||||
                  <td>Total fees</td>
 | 
					                  <td>Total fees</td>
 | 
				
			||||||
                  <td>{{ fees | number: '1.2-8' }} BTC (<app-fiat [value]="fees * 100000000"></app-fiat>)</td>
 | 
					                  <td><span title="{{ fees | number: '1.2-8' }} BTC">{{ fees | number: '1.2-2' }} BTC</span> (<app-fiat [value]="fees * 100000000" digitsInfo="1.0-0"></app-fiat>)</td>
 | 
				
			||||||
                </tr>
 | 
					                </tr>
 | 
				
			||||||
                <tr>
 | 
					                <tr>
 | 
				
			||||||
                  <td>Reward + fees:</td>
 | 
					                  <td>Reward + fees:</td>
 | 
				
			||||||
                  <td>
 | 
					                  <td>
 | 
				
			||||||
                    {{ blockSubsidy + fees | number: '1.2-8' }} BTC (<app-fiat [value]="(blockSubsidy + fees) * 100000000"></app-fiat>)
 | 
					                    <span title="{{ blockSubsidy + fees | number: '1.2-8' }} BTC">{{ blockSubsidy + fees | number: '1.2-2' }} BTC</span> (<app-fiat [value]="(blockSubsidy + fees) * 100000000" digitsInfo="1.0-0"></app-fiat>)
 | 
				
			||||||
                  </td>
 | 
					                  </td>
 | 
				
			||||||
                </tr>
 | 
					                </tr>
 | 
				
			||||||
              </ng-template>
 | 
					              </ng-template>
 | 
				
			||||||
 | 
				
			|||||||
@ -1 +1 @@
 | 
				
			|||||||
<span class="green-color">{{ (conversions$ | async)?.USD * value / 100000000 | currency:'USD':'symbol':'1.2-2' }}</span>
 | 
					<span class="green-color">{{ (conversions$ | async)?.USD * value / 100000000 | currency:'USD':'symbol':digitsInfo }}</span>
 | 
				
			||||||
@ -12,6 +12,7 @@ export class FiatComponent implements OnInit {
 | 
				
			|||||||
  conversions$: Observable<any>;
 | 
					  conversions$: Observable<any>;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  @Input() value: number;
 | 
					  @Input() value: number;
 | 
				
			||||||
 | 
					  @Input() digitsInfo = '1.2-2';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  constructor(
 | 
					  constructor(
 | 
				
			||||||
    private stateService: StateService,
 | 
					    private stateService: StateService,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user