fixed the login button

MOHEMM-SFH-COLORS
enadhilal 5 years ago
parent d811c446e8
commit 3e84cedd4c

@ -493,6 +493,8 @@ export class ConfirmLoginComponent implements OnInit {
element.forEach(elementValue => {
if(typeNumber === elementValue.value){
buttonSelected = elementValue;
}else{
elementValue.visible = false;
}
});
});

@ -51,7 +51,7 @@
</ion-row>
<ion-row>
<ion-col>
<ion-button *ngIf="userInfo" class="button-digital-id" (click)="testLogin()">
<ion-button *ngIf="userInfo" class="button-digital-id" (click)="loginWithDigitalID()">
<p style="color: black;">{{ts.trPK('general','digital-id')}}</p>
<img [ngClass]=" direction === 'en' ? 'digital-id-en' : 'digital-id-ar'" src="../assets/imgs/ID_ico.png">
</ion-button>

@ -224,18 +224,7 @@ export class WelcomeComponent implements OnInit, AfterViewInit, OnDestroy {
this.loginWithUser.emit();
}
testLogin(){
let x = {
title: 'login,verify-with-whatsapp',
url: null,
icon: 'assets/icon/login/104.png',
settings: new ButtonSettings(true, true, true, true),
value: 4,
visible: true,
buttonClass: 'buttonClassWhite',
pClass: 'pClassMyFileIconBlack',
class: 'nationalIdIcon',
};
loginWithDigitalID(){
this.confimLogin.checkAccess(this.logintype, true, this.logintype);
}

Loading…
Cancel
Save