Skip to content

Commit

Permalink
Hide "Show tutorials only" button if hacking instructor is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
bkimminich committed Sep 25, 2020
1 parent dec1118 commit f95cb15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/score-board/score-board.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<i class="fa-2x fas fa-trophy" aria-hidden="true"></i> {{"BTN_SHOW_SOLVED" | translate}}
</mat-button-toggle>

<mat-button-toggle id="btnToggleShowOnlyTutorialChallenges" (change)="toggleShowOnlyTutorialChallenges()"
<mat-button-toggle id="btnToggleShowOnlyTutorialChallenges" *ngIf="showHackingInstructor" (change)="toggleShowOnlyTutorialChallenges()"
[checked]="showOnlyTutorialChallenges" [disabled]="restrictToTutorialsFirst && !allTutorialsCompleted"
[matTooltip]="restrictToTutorialsFirst && !allTutorialsCompleted ? ('INFO_FULL_CHALLENGE_MODE' | translate: {num: challenges.length}) : ''" matTooltipPosition="above">
<mat-icon>
Expand Down

0 comments on commit f95cb15

Please sign in to comment.