Skip to content

Commit

Permalink
Merge pull request #545 from rahulramakrishnan3/release-3.1.0
Browse files Browse the repository at this point in the history
become a mentor issue
  • Loading branch information
Cafnanc authored Aug 7, 2024
2 parents 9aeb6a9 + ad02fd8 commit ebedd8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/app/pages/tabs/home/home.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h3>
</div>
</ion-grid>
</ng-template>
<!-- <ion-card *ngIf="showBecomeMentorCard" class="ion-padding card-config">
<ion-card *ngIf="showBecomeMentorCard" class="ion-padding card-config">
<ion-card-header class="ion-no-padding d-flex flex-align-items-center flex-justify-space-between">
<ion-label class="header-label">{{"CONNECT_SHARE_&_INSPIRE"|translate}}</ion-label>
<div class="round-icon-button d-flex flex-align-items-center flex-justify-center" (click)="closeCard()">
Expand All @@ -54,7 +54,7 @@ <h3>
<ion-label class="header-label content-label">{{"EMPOWER_THE_SCHOOL_LEADERS"|translate}}</ion-label>
</ion-card-content>
<ion-button class="mentor-card-button my-8" (click)="becomeMentor()">{{"BECOME_A_MENTOR"|translate}}</ion-button>
</ion-card> -->
</ion-card>
<div class="page-intro segment-wrapper" [ngClass]="{'align-center': !isNativeApp}">
<div class="d-flex segment-wrapper">
<div class="segment-div" *ngFor="let segment of segmentButtons;">
Expand Down
8 changes: 4 additions & 4 deletions src/app/pages/tabs/profile/profile.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ public buttonConfig = {
if(this.user){
await this.profileService.getUserRole(this.user)
}
// if(!this.profileService.isMentor&&!await this.localStorage.getLocalData(localKeys.IS_ROLE_REQUESTED)&&!this.isMentorButtonPushed) {
// this.buttonConfig.buttons.push(this.becomeAMentorButton)
// this.isMentorButtonPushed = true;
// }
if(!this.profileService.isMentor&&!await this.localStorage.getLocalData(localKeys.IS_ROLE_REQUESTED)&&!this.isMentorButtonPushed) {
this.buttonConfig.buttons.push(this.becomeAMentorButton)
this.isMentorButtonPushed = true;
}
this.formData.data = this.user;
this.formData.data.emailId = this.user.email.address;
this.formData.data.organizationName = this.user?.organization?.name;
Expand Down

0 comments on commit ebedd8c

Please sign in to comment.