Skip to content

Commit

Permalink
Merge pull request #500 from rahulramakrishnan3/release-3.0.0
Browse files Browse the repository at this point in the history
BUG fix : 1338
  • Loading branch information
Cafnanc authored May 23, 2024
2 parents a57907b + b5596ab commit 763eb35
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/modules/auth/otp/otp.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</section>
<section>
<div class="d-flex flex-justify-center flex-align-items-center">
<ion-button [ngClass]="{'my-10': true, 'disabled': !recaptchaResolved , 'onboard-button':true}" [disabled]="!recaptchaResolved"
<ion-button [ngClass]="{'my-10': true, 'disabled': !recaptchaResolved && !enableGeneratetOtp, 'onboard-button':true}" [disabled]="!recaptchaResolved && !enableGeneratetOtp"
(click)="onSubmitGenerateOtp()" shape="round">
{{'GENERATE_OTP'|translate}}
</ion-button>
Expand Down
4 changes: 3 additions & 1 deletion src/app/modules/auth/otp/otp.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export class OtpPage implements OnInit {
captchaToken:any="";
recaptchaResolved: boolean = this.siteKey ? false : true;
showOtp:any = false;
enableGeneratetOtp: boolean = false;


constructor(private router: Router, private profileService: ProfileService,private location: Location, private activatedRoute: ActivatedRoute, private localStorage: LocalStorageService, private translateService: TranslateService, private authService: AuthService, private toast: ToastService, private menuCtrl: MenuController, private nav: NavController) {
Expand Down Expand Up @@ -119,7 +120,8 @@ export class OtpPage implements OnInit {
async resendOtp() {
this.enableResendOtp = false;
this.showOtp = false;
this.recaptchaResolved = false
this.recaptchaResolved = false;
this.enableGeneratetOtp = this.siteKey ? false : true;
}

async onSubmitGenerateOtp(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@ export class GenericProfileHeaderComponent implements OnInit {
labels = ["CHECK_OUT_MENTOR","PROFILE_ON_MENTORED_EXPLORE_THE_SESSIONS"];

public isMobile:any;
user: any;
roles: any;

constructor(private router:Router,private localStorage:LocalStorageService, private profileService: ProfileService, private utilService:UtilService,private toast: ToastService, private translateService: TranslateService,) {
this.isMobile = utilService.isMobile()
}

async ngOnInit() {
this.user = await this.localStorage.getLocalData(localKeys.USER_DETAILS)
this.roles = this.headerData.user_roles;
}

Expand All @@ -39,7 +37,7 @@ export class GenericProfileHeaderComponent implements OnInit {
break;

case 'role':
if(this.user?.about != null){
if(this.headerData?.about != null){
this.router.navigate([`/${CommonRoutes.MENTOR_QUESTIONNAIRE}`]);
} else{
this.profileService.upDateProfilePopup()
Expand Down

0 comments on commit 763eb35

Please sign in to comment.