start scan format

This commit is contained in:
CHIEFSOFT\ameye
2023-09-17 05:18:58 -04:00
parent 1f4ca7831f
commit 7c3899242f
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -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>
+2 -2
View File
@@ -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;
+3 -2
View File
@@ -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();
}
}
);