|
6 | 6 | </mat-toolbar> |
7 | 7 |
|
8 | 8 | <ion-content *transloco="let t"> |
9 | | - <ion-card id="main-card"> |
10 | | - <ion-grid> |
11 | | - <ion-row id="in-app-transfer-row"> |
12 | | - <ion-col size="2"> |
13 | | - <ion-icon id="in-app-transfer-wallet-icon" name="wallet"></ion-icon> |
14 | | - </ion-col> |
15 | | - <ion-col size="8"> |
16 | | - <h6>{{ t('wallets.inAppTransfer') }}</h6> |
17 | | - <p>{{ t('wallets.moveNumBetweenAssetWallet') }}</p> |
18 | | - <p>{{ t('wallets.andIntegrityWallet') }}</p> |
19 | | - </ion-col> |
20 | | - <ion-col> |
21 | | - <ion-img |
22 | | - id="num-icon-svg" |
23 | | - src="../../../assets/images/num-icon.svg" |
24 | | - ></ion-img> |
25 | | - </ion-col> |
26 | | - </ion-row> |
27 | | - <ion-row class="wallet-info-row"> |
28 | | - <ion-col size="7"> |
29 | | - <h1> |
30 | | - {{ |
31 | | - mode === 'withdraw' |
32 | | - ? t('wallets.assetWallet') |
33 | | - : t('wallets.integrityWallet') |
34 | | - }} |
35 | | - </h1> |
36 | | - </ion-col> |
37 | | - <ion-col offset="0.5"> |
38 | | - <h6>BEP20</h6> |
39 | | - <h5> |
40 | | - {{ |
41 | | - (mode === 'withdraw' |
42 | | - ? assetWalletBscNumBalance$ |
43 | | - : integrityWalletBscNumBalance$ |
44 | | - ) |
45 | | - | ngrxPush |
46 | | - | currency |
47 | | - }} |
48 | | - </h5> |
49 | | - </ion-col> |
50 | | - </ion-row> |
51 | | - <ion-row id="divider-row"> |
52 | | - <ion-icon id="direction-icon" name="arrow-down-circle"></ion-icon> |
53 | | - <div id="horizontal-divider"></div> |
54 | | - </ion-row> |
55 | | - <ion-row class="wallet-info-row"> |
56 | | - <ion-col size="7"> |
57 | | - <h1> |
58 | | - {{ |
59 | | - mode === 'withdraw' |
60 | | - ? t('wallets.integrityWallet') |
61 | | - : t('wallets.assetWallet') |
62 | | - }} |
63 | | - </h1> |
64 | | - </ion-col> |
65 | | - <ion-col offset="0.5"> |
66 | | - <h6>BEP20</h6> |
67 | | - <h5> |
68 | | - {{ |
69 | | - (mode === 'withdraw' |
70 | | - ? integrityWalletBscNumBalance$ |
71 | | - : assetWalletBscNumBalance$ |
72 | | - ) |
73 | | - | ngrxPush |
74 | | - | currency |
75 | | - }} |
76 | | - </h5> |
77 | | - </ion-col> |
78 | | - </ion-row> |
79 | | - <ion-row> |
80 | | - <ion-input |
81 | | - id="transfer-amount-input" |
82 | | - [placeholder]="t('wallets.enterAmount')" |
83 | | - [(ngModel)]="transferAmount" |
84 | | - type="number" |
85 | | - (input)="onInputTransferAmount()" |
86 | | - ></ion-input> |
87 | | - </ion-row> |
88 | | - </ion-grid> |
89 | | - </ion-card> |
90 | | - <ion-card id="bottom-card" *ngIf="keyboardIsHidden$ | ngrxPush"> |
91 | | - <ion-grid> |
92 | | - <ion-row> |
93 | | - <ion-col size="2"> |
94 | | - <ion-icon name="wallet"></ion-icon> |
95 | | - </ion-col> |
96 | | - <ion-col size="5" *ngrxLet="gasFee$ as gasFee"> |
97 | | - <h6 class="gas-fee-text"> |
98 | | - {{ t('wallets.gasFee') }}: |
99 | | - {{ gasFee > 0 ? (gasFee | number: '1.2-2') : t('wallets.pending') }} |
100 | | - </h6> |
101 | | - <h4 class="wallet-total-text"> |
102 | | - {{ t('wallets.total') }} {{ totalCost$ | ngrxPush | currency }} |
103 | | - </h4> |
104 | | - </ion-col> |
105 | | - <ion-col id="deposit-withdraw-btn-col"> |
106 | | - <ion-button |
107 | | - *ngIf="!readyToSend" |
108 | | - fill="outline" |
109 | | - expand="block" |
110 | | - (click)="calculateGasFee()" |
111 | | - >{{ t('wallets.calculateGasFee') }}</ion-button |
112 | | - > |
113 | | - <ion-button |
114 | | - *ngIf="readyToSend" |
115 | | - fill="outline" |
116 | | - expand="block" |
117 | | - (click)="transfer()" |
118 | | - >{{ t('wallets.' + mode) }}</ion-button |
119 | | - > |
120 | | - </ion-col> |
121 | | - </ion-row> |
122 | | - </ion-grid> |
123 | | - </ion-card> |
| 9 | + <div *ngIf="mode === 'deposit'"> |
| 10 | + <div class="vertical-pacing-12"></div> |
| 11 | + <div class="asset-wallet-qr-code-container"> |
| 12 | + {{ t('wallets.myAssetWalletQRCode') }} |
| 13 | + <div class="qr-code-info"> |
| 14 | + {{ t('wallets.myAssetWalletQRCodeInfo') }} |
| 15 | + </div> |
| 16 | + <div class="vertical-pacing-12"></div> |
| 17 | + <ngx-qrcode |
| 18 | + [elementType]="elementType" |
| 19 | + [value]="assetWalletAddr$ | ngrxPush" |
| 20 | + cssClass="qr-code" |
| 21 | + [margin]="0" |
| 22 | + [width]="150" |
| 23 | + > |
| 24 | + </ngx-qrcode> |
| 25 | + </div> |
| 26 | + |
| 27 | + <mat-list> |
| 28 | + <mat-list-item> |
| 29 | + <mat-icon svgIcon="wallet" mat-list-icon></mat-icon> |
| 30 | + <div mat-line> |
| 31 | + {{ t('wallets.myAssetWallet') }} |
| 32 | + <ion-icon |
| 33 | + class="info-icon" |
| 34 | + name="information-circle" |
| 35 | + #assetWalletTooltip="matTooltip" |
| 36 | + (click)="assetWalletTooltip.toggle()" |
| 37 | + [matTooltip]="t('wallets.myAssetWalletTooltip')" |
| 38 | + ></ion-icon> |
| 39 | + </div> |
| 40 | + <div mat-line>{{ assetWalletAddr$ | ngrxPush }}</div> |
| 41 | + <button |
| 42 | + mat-icon-button |
| 43 | + *ngIf="assetWalletAddr$ | ngrxPush as assetWalletAddr" |
| 44 | + (click)="copyToClipboard(assetWalletAddr)" |
| 45 | + > |
| 46 | + <mat-icon>content_copy</mat-icon> |
| 47 | + </button> |
| 48 | + </mat-list-item> |
| 49 | + </mat-list> |
| 50 | + </div> |
| 51 | + |
| 52 | + <div *ngIf="mode === 'withdraw'"> |
| 53 | + <ion-card id="main-card"> |
| 54 | + <ion-grid> |
| 55 | + <ion-row id="in-app-transfer-row"> |
| 56 | + <ion-col size="2"> |
| 57 | + <ion-icon id="in-app-transfer-wallet-icon" name="wallet"></ion-icon> |
| 58 | + </ion-col> |
| 59 | + <ion-col size="8"> |
| 60 | + <h6>{{ t('wallets.inAppTransfer') }}</h6> |
| 61 | + <p>{{ t('wallets.moveNumBetweenAssetWallet') }}</p> |
| 62 | + <p>{{ t('wallets.andIntegrityWallet') }}</p> |
| 63 | + </ion-col> |
| 64 | + <ion-col> |
| 65 | + <ion-img |
| 66 | + id="num-icon-svg" |
| 67 | + src="../../../assets/images/num-icon.svg" |
| 68 | + ></ion-img> |
| 69 | + </ion-col> |
| 70 | + </ion-row> |
| 71 | + <ion-row class="wallet-info-row"> |
| 72 | + <ion-col size="7"> |
| 73 | + <h1> |
| 74 | + {{ |
| 75 | + mode === 'withdraw' |
| 76 | + ? t('wallets.assetWallet') |
| 77 | + : t('wallets.integrityWallet') |
| 78 | + }} |
| 79 | + </h1> |
| 80 | + </ion-col> |
| 81 | + <ion-col offset="0.5"> |
| 82 | + <h6>BEP20</h6> |
| 83 | + <h5> |
| 84 | + {{ |
| 85 | + (mode === 'withdraw' |
| 86 | + ? assetWalletBscNumBalance$ |
| 87 | + : integrityWalletBscNumBalance$ |
| 88 | + ) |
| 89 | + | ngrxPush |
| 90 | + | currency |
| 91 | + }} |
| 92 | + </h5> |
| 93 | + </ion-col> |
| 94 | + </ion-row> |
| 95 | + <ion-row id="divider-row"> |
| 96 | + <ion-icon id="direction-icon" name="arrow-down-circle"></ion-icon> |
| 97 | + <div id="horizontal-divider"></div> |
| 98 | + </ion-row> |
| 99 | + <ion-row class="wallet-info-row"> |
| 100 | + <ion-col size="7"> |
| 101 | + <h1> |
| 102 | + {{ |
| 103 | + mode === 'withdraw' |
| 104 | + ? t('wallets.integrityWallet') |
| 105 | + : t('wallets.assetWallet') |
| 106 | + }} |
| 107 | + </h1> |
| 108 | + </ion-col> |
| 109 | + <ion-col offset="0.5"> |
| 110 | + <h6>BEP20</h6> |
| 111 | + <h5> |
| 112 | + {{ |
| 113 | + (mode === 'withdraw' |
| 114 | + ? integrityWalletBscNumBalance$ |
| 115 | + : assetWalletBscNumBalance$ |
| 116 | + ) |
| 117 | + | ngrxPush |
| 118 | + | currency |
| 119 | + }} |
| 120 | + </h5> |
| 121 | + </ion-col> |
| 122 | + </ion-row> |
| 123 | + <ion-row> |
| 124 | + <ion-input |
| 125 | + id="transfer-amount-input" |
| 126 | + [placeholder]="t('wallets.enterAmount')" |
| 127 | + [(ngModel)]="transferAmount" |
| 128 | + type="number" |
| 129 | + (input)="onInputTransferAmount()" |
| 130 | + ></ion-input> |
| 131 | + </ion-row> |
| 132 | + </ion-grid> |
| 133 | + </ion-card> |
| 134 | + <ion-card id="bottom-card" *ngIf="keyboardIsHidden$ | ngrxPush"> |
| 135 | + <ion-grid> |
| 136 | + <ion-row> |
| 137 | + <ion-col size="2"> |
| 138 | + <ion-icon name="wallet"></ion-icon> |
| 139 | + </ion-col> |
| 140 | + <ion-col size="5" *ngrxLet="gasFee$ as gasFee"> |
| 141 | + <h6 class="gas-fee-text"> |
| 142 | + {{ t('wallets.gasFee') }}: |
| 143 | + {{ |
| 144 | + gasFee > 0 ? (gasFee | number: '1.2-2') : t('wallets.pending') |
| 145 | + }} |
| 146 | + </h6> |
| 147 | + <h4 class="wallet-total-text"> |
| 148 | + {{ t('wallets.total') }} {{ totalCost$ | ngrxPush | currency }} |
| 149 | + </h4> |
| 150 | + </ion-col> |
| 151 | + <ion-col id="deposit-withdraw-btn-col"> |
| 152 | + <ion-button |
| 153 | + *ngIf="!readyToSend" |
| 154 | + fill="outline" |
| 155 | + expand="block" |
| 156 | + (click)="calculateGasFee()" |
| 157 | + >{{ t('wallets.calculateGasFee') }}</ion-button |
| 158 | + > |
| 159 | + <ion-button |
| 160 | + *ngIf="readyToSend" |
| 161 | + fill="outline" |
| 162 | + expand="block" |
| 163 | + (click)="transfer()" |
| 164 | + >{{ t('wallets.' + mode) }}</ion-button |
| 165 | + > |
| 166 | + </ion-col> |
| 167 | + </ion-row> |
| 168 | + </ion-grid> |
| 169 | + </ion-card> |
| 170 | + </div> |
124 | 171 | </ion-content> |
0 commit comments