start scan format
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
<ion-footer>
|
||||
<ion-toolbar>
|
||||
<div class="button" (click)="onBack()">
|
||||
<div class="cancel_button" (click)="onBack()">
|
||||
<ion-label class="text">Stop Scan</ion-label>
|
||||
</div>
|
||||
</ion-toolbar>
|
||||
|
||||
@@ -369,8 +369,8 @@ ion-footer {
|
||||
font-size: 25px;
|
||||
}
|
||||
|
||||
.button {
|
||||
background-color: var(--ion-color-primary);
|
||||
.cancel_button {
|
||||
background-color: var(--ion-color-danger);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
|
||||
@@ -52,18 +52,19 @@ export class StartscanPage implements OnInit {
|
||||
// alert(1000);
|
||||
this.wrenchService.qrLoginUser(this.loginQrData).subscribe(
|
||||
loginResult => {
|
||||
alert("Here 00009");
|
||||
// alert("Here 00009");
|
||||
this.loginResult = loginResult;
|
||||
console.log("INTERNAL RETURN->" + this.loginResult.internal_return);
|
||||
if (loginResult != null
|
||||
&& loginResult.internal_return == 100
|
||||
&& this.sessionDataProviderService.ConstructGlobalSessionData(this.loginResult) == true) {
|
||||
alert("Here 00009a");
|
||||
// alert("Here 00009a");
|
||||
// this.getBlogData();
|
||||
this.router.navigate(['tabs/tab1']);
|
||||
}
|
||||
else{
|
||||
this.showAlert("Error","Unable to use the code to login");
|
||||
this. stopScan();
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user