Skip to content

Commit

Permalink
Merge pull request #651 from origami-team/v4.4.1_web
Browse files Browse the repository at this point in the history
V4.4.1 web
  • Loading branch information
YouQam authored Nov 18, 2024
2 parents b4b177d + effdf20 commit 24ec5ae
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
17 changes: 15 additions & 2 deletions src/app/pages/user/login/login.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { AuthService } from 'src/app/services/auth-service.service';
import { Validators, FormBuilder } from '@angular/forms';
import { NavController } from '@ionic/angular';
import { UtilService } from 'src/app/services/util.service';
import { ActivatedRoute } from '@angular/router';

@Component({
selector: 'app-login',
Expand All @@ -14,15 +15,27 @@ export class LoginPage implements OnInit {
error: string;
register;
loading;
emailStatus='';
msgType=''

constructor(
private fb: FormBuilder,
private authService: AuthService,
public navCtrl: NavController,
private utilService: UtilService
) {}
private utilService: UtilService,
private route: ActivatedRoute
) {
this.emailStatus = this.route.snapshot.queryParamMap.get('emailStatus');
this.msgType = this.route.snapshot.queryParamMap.get('msgType');
}

ngOnInit(): void {
// show msg when access game using email verification link
if (this.emailStatus) {
/* show toast msg */
this.utilService.showToast(this.emailStatus, this.msgType);
}

this.loginForm = this.fb.group({
username: ['', [Validators.required]],
password: ['', [Validators.required]],
Expand Down
6 changes: 5 additions & 1 deletion src/theme/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,14 @@ button.alert-button.alert-button-download-track {
--end: 10%;
}

// To edit message color
/* ion-toast::part(message) {
color: #000000 !important;
} */
// To show border between msg and dismiss button
.custom-toast::part(button) {
border-left: 1px solid #d2d2d2;
//color: #030207;
// color: #030207;
font-size: 15px;
}

Expand Down

0 comments on commit 24ec5ae

Please sign in to comment.