Skip to content

Commit 32cebb2

Browse files
authored
Merge pull request #2605 from intersective/2.4.y.z/CORE-8140/expert-noteam-hidetraffic
[CORE-8140] hide pulsecheck for no team mentor
2 parents f9e69fe + f029366 commit 32cebb2

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

projects/v3/src/app/pages/home/home.page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
<ion-segment-button value="pulse-checks"
9494
mode="ios"
9595
role="tab"
96-
*ngIf="pulseCheckIndicatorEnabled === true"
96+
*ngIf="pulseCheckIndicatorEnabled === true && !isExpertWithoutTeam"
9797
[attr.aria-selected]="display === 'pulse-checks'"
9898
[attr.aria-controls]="'pulse-checks-panel'">
9999
<ion-label i18n>Skill & Progress Surveys</ion-label>

projects/v3/src/app/pages/home/home.page.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export class HomePage implements OnInit, OnDestroy, AfterViewChecked {
3535

3636
isMobile: boolean;
3737
isParticipant: boolean;
38+
isExpertWithoutTeam: boolean;
3839
pulseCheckIndicatorEnabled: boolean;
3940
activityProgresses = {};
4041

@@ -89,7 +90,9 @@ export class HomePage implements OnInit, OnDestroy, AfterViewChecked {
8990

9091
ngOnInit() {
9192
const role = this.storageService.getUser().role;
93+
const teamId = this.storageService.getUser().teamId;
9294
this.isParticipant = role === 'participant';
95+
this.isExpertWithoutTeam = role === 'mentor' && !teamId;
9396
this.pulseCheckIndicatorEnabled = this.storageService.getFeature('pulseCheckIndicator');
9497
this.isMobile = this.utils.isMobile();
9598
this.homeService.milestones$

0 commit comments

Comments
 (0)