/
wallets.page.html
142 lines (140 loc) · 4.32 KB
/
wallets.page.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<mat-toolbar *transloco="let t">
<button routerLink=".." routerDirection="back" mat-icon-button>
<mat-icon>arrow_back</mat-icon>
</button>
<span>{{ t('wallets.wallets') }}</span>
</mat-toolbar>
<ion-content *transloco="let t">
<ion-refresher slot="fixed" (ionRefresh)="refreshBalance($event)">
</ion-refresher>
<p id="pull-to-refresh-help-text">
↓{{ t('wallets.pullToRefreshBalance') }}↓
</p>
<ion-card>
<ion-grid>
<ion-row>
<ion-col size="8">
<ion-text class="text-black">
<h1 class="balance-text">
{{ totalBalance$ | ngrxPush | currency }} NUM
</h1>
</ion-text>
</ion-col>
<ion-col offset="0.3">
<ion-row id="num-icon-row">
<ion-img src="../../../assets/images/num-icon.svg"></ion-img>
<ion-text class="text-black">
<h3 class="num-text">NUM</h3>
</ion-text>
</ion-row>
</ion-col>
</ion-row>
<ion-row id="bep20-points-row" class="text-black">
BEP20:
<span
class="bep20-points"
*ngIf="!(isLoadingBalance$ | ngrxPush); else balanceLoading"
>
${{ bscNumBalance$ | ngrxPush | number: '1.2-2' }}
</span>
<ng-template #balanceLoading>
<mat-spinner diameter="15"></mat-spinner>
</ng-template>
Points:
<span
class="bep20-points"
*ngIf="!(isLoadingBalance$ | ngrxPush); else balanceLoading"
>{{ points$ | ngrxPush | number: '1.2-2' }}</span
>
</ion-row>
<ion-row id="buy-deposit-withdraw-row">
<ion-button
(click)="navigateToBuyNumPage()"
id="buy-num-btn"
size="small"
class="num-operation-btn"
>{{ t('buy') }} NUM</ion-button
>
<ion-button
*ngIf="shouldHideDepositButton === false"
class="deposit-withdraw-num-btn num-operation-btn"
color="#7E7E7E"
fill="outline"
size="small"
(click)="onDepositWithdrawBtnClick('deposit')"
>{{ t('wallets.deposit') }}</ion-button
>
<ion-button
class="deposit-withdraw-num-btn num-operation-btn"
color="#7E7E7E"
fill="outline"
size="small"
(click)="onDepositWithdrawBtnClick('withdraw')"
>{{ t('wallets.withdraw') }}</ion-button
>
</ion-row>
</ion-grid>
</ion-card>
<mat-list>
<mat-list-item>
<mat-icon svgIcon="wallet" mat-list-icon></mat-icon>
<div mat-line>
{{ t('wallets.myAssetWallet') }}
<ion-icon
class="info-icon"
name="information-circle"
#assetWalletTooltip="matTooltip"
(click)="assetWalletTooltip.toggle()"
[matTooltip]="t('wallets.myAssetWalletTooltip')"
></ion-icon>
</div>
<div mat-line>{{ assetWalletAddr$ | ngrxPush }}</div>
<button
mat-icon-button
*ngIf="assetWalletAddr$ | ngrxPush as assetWalletAddr"
(click)="copyToClipboard(assetWalletAddr)"
>
<mat-icon>content_copy</mat-icon>
</button>
</mat-list-item>
<mat-list-item>
<mat-icon mat-list-icon>vpn_key</mat-icon>
<div mat-line>
{{ t('wallets.integrityKey') }}
<ion-icon
class="info-icon"
name="information-circle"
#integrityKeyTooltip="matTooltip"
(click)="integrityKeyTooltip.toggle()"
[matTooltip]="t('wallets.integrityWalletTooltip')"
></ion-icon>
</div>
<div mat-line>{{ publicKey$ | ngrxPush }}</div>
<button
mat-icon-button
*ngIf="publicKey$ | ngrxPush as publicKey"
(click)="copyToClipboard(publicKey)"
>
<mat-icon>content_copy</mat-icon>
</button>
</mat-list-item>
<mat-list-item>
<mat-icon mat-list-icon>history</mat-icon>
<div mat-line>{{ t('wallets.assetWalletHistory') }}</div>
<div mat-line>
<a (click)="openAssetWalletHistory()">{{
t('wallets.viewOnBscScan')
}}</a>
</div>
</mat-list-item>
</mat-list>
<ion-button
expand="block"
color="danger"
fill="outline"
id="export-integrity-wallet-btn"
(click)="exportIntegrityWalletPrivateKey()"
>
{{ t('wallets.exportIntegrityKey') }}
</ion-button>
</ion-content>