@@ -6,6 +6,7 @@ import { DomSanitizer } from '@angular/platform-browser';
6
6
import { Router } from '@angular/router' ;
7
7
import { Browser } from '@capacitor/browser' ;
8
8
import { Clipboard } from '@capacitor/clipboard' ;
9
+ import { Platform } from '@ionic/angular' ;
9
10
import { TranslocoService } from '@ngneat/transloco' ;
10
11
import { UntilDestroy , untilDestroyed } from '@ngneat/until-destroy' ;
11
12
import { NgxQrcodeElementTypes } from '@techiediaries/ngx-qrcode' ;
@@ -50,6 +51,7 @@ export class WalletsPage {
50
51
readonly networkConnected$ = this . diaBackendWalletService . networkConnected$ ;
51
52
52
53
elementType = NgxQrcodeElementTypes . URL ;
54
+ shouldHideDepositButton = false ;
53
55
54
56
constructor (
55
57
private readonly diaBackendWalletService : DiaBackendWalletService ,
@@ -62,7 +64,8 @@ export class WalletsPage {
62
64
private readonly confirmAlert : ConfirmAlert ,
63
65
private readonly dialog : MatDialog ,
64
66
private readonly errorService : ErrorService ,
65
- private readonly router : Router
67
+ private readonly router : Router ,
68
+ private readonly platform : Platform
66
69
) {
67
70
this . matIconRegistry . addSvgIcon (
68
71
'wallet' ,
@@ -80,6 +83,8 @@ export class WalletsPage {
80
83
untilDestroyed ( this )
81
84
)
82
85
. subscribe ( totalBalance => this . totalBalance$ . next ( totalBalance ) ) ;
86
+
87
+ this . shouldHideDepositButton = this . platform . is ( 'ios' ) ;
83
88
}
84
89
85
90
// eslint-disable-next-line class-methods-use-this
0 commit comments