Skip to content

Commit

Permalink
CoursesProgressLearner: Remove avatar (fixes open-learning-exchange#6994
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbert authored Jul 31, 2020
1 parent ce246a1 commit ae71fb3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<div class="errors-container errors-user-total" #errorsUserTotal>
<div class="errors" *ngFor="let set of sets">
<div>{{set.total}}</div>
<planet-avatar class="cursor-pointer" (click)="labelClick(set)" [username]="set.label" [planetCode]="set.planetCode" imgClass="profile-image-large"></planet-avatar>
<planet-avatar *ngIf="showAvatar" class="cursor-pointer" (click)="labelClick(set)" [username]="set.label" [planetCode]="set.planetCode" imgClass="profile-image-large"></planet-avatar>
<div class="wrap-content cursor-pointer" (click)="labelClick(set)" [matTooltip]="set.label?.length > 3 ? set.label : null "><p>{{set.label}}</p></div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export class CoursesProgressChartComponent implements OnChanges {
@Input() label = '';
@Input() height = 0;
@Input() showTotals = true;
@Input() showAvatar = false;
@Output() changeData = new EventEmitter<{ set, index }>();
@Output() clickAction = new EventEmitter<any>();
@ViewChildren('errorsTotal, errorsIndex') yScrollElements;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</mat-form-field>
</mat-toolbar>
<div class="view-container view-full-height">
<planet-courses-progress-chart *ngIf="chartData?.length; else noProgress" [label]="chartLabel" [inputs]="chartData" [height]="yAxisLength" (clickAction)="memberClick($event)" (changeData)="changeData($event)">
<planet-courses-progress-chart *ngIf="chartData?.length; else noProgress" [label]="chartLabel" [inputs]="chartData" [height]="yAxisLength" [showAvatar]="true" (clickAction)="memberClick($event)" (changeData)="changeData($event)">
</planet-courses-progress-chart>
<ng-template #noProgress i18n>No Progress record available</ng-template>
</div>
Expand Down

0 comments on commit ae71fb3

Please sign in to comment.