Liquid: Display BTC as L-BTC.

This commit is contained in:
softsimon
2020-03-25 21:55:18 +07:00
parent 350a06a096
commit 81839cb55f
7 changed files with 18 additions and 7 deletions

View File

@@ -18,15 +18,15 @@
<tbody>
<tr>
<td>Total received</td>
<td>{{ receieved / 100000000 | number: '1.8-8' }} BTC</td>
<td>{{ receieved / 100000000 | number: '1.8-8' }} <ng-template [ngIf]="network === 'liquid'">L-</ng-template>BTC</td>
</tr>
<tr>
<td>Total sent</td>
<td>{{ sent / 100000000 | number: '1.8-8' }} BTC</td>
<td>{{ sent / 100000000 | number: '1.8-8' }} <ng-template [ngIf]="network === 'liquid'">L-</ng-template>BTC</td>
</tr>
<tr>
<td>Balance</td>
<td>{{ (receieved - sent) / 100000000 | number: '1.8-8' }} BTC (<app-fiat [value]="receieved - sent"></app-fiat>)</td>
<td>{{ (receieved - sent) / 100000000 | number: '1.8-8' }} <ng-template [ngIf]="network === 'liquid'">L-</ng-template>BTC (<app-fiat [value]="receieved - sent"></app-fiat>)</td>
</tr>
</tbody>
</table>

View File

@@ -9,6 +9,7 @@ import { AudioService } from 'src/app/services/audio.service';
import { ApiService } from 'src/app/services/api.service';
import { of, merge } from 'rxjs';
import { SeoService } from 'src/app/services/seo.service';
import { environment } from 'src/environments/environment';
@Component({
selector: 'app-address',
@@ -16,6 +17,8 @@ import { SeoService } from 'src/app/services/seo.service';
styleUrls: ['./address.component.scss']
})
export class AddressComponent implements OnInit, OnDestroy {
network = environment.network;
address: Address;
addressString: string;
isLoadingAddress = true;