Skip to content

Commit

Permalink
Adaptive learning: Omit competency taxonomy icon on dashboard if no t…
Browse files Browse the repository at this point in the history
…axonomy is set (#8809)
  • Loading branch information
MaximilianAnzinger authored Jun 18, 2024
1 parent 7083d42 commit 5c71468
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
(click)="toggle()"
>
<h4 class="fw-medium mb-0 py-2 col-sm-6 d-flex gap-2">
<fa-icon
[icon]="getIcon(competency.taxonomy)"
[fixedWidth]="true"
[ngbTooltip]="'artemisApp.competency.taxonomies.' + competency.taxonomy | artemisTranslate"
container="body"
/>
@if (competency.taxonomy) {
<fa-icon
[icon]="getIcon(competency.taxonomy)"
[fixedWidth]="true"
[ngbTooltip]="'artemisApp.competency.taxonomies.' + competency.taxonomy | artemisTranslate"
container="body"
/>
}
{{ competency.title }}
</h4>
<div class="w-100 d-flex align-items-center gap-4">
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/app/entities/student-metrics.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class CompetencyInformation {
public id: number;
public title: string;
public description: string;
public taxonomy: CompetencyTaxonomy;
public taxonomy?: CompetencyTaxonomy;
public softDueDate?: dayjs.Dayjs;
public optional: boolean;
public masteryThreshold: number;
Expand Down

0 comments on commit 5c71468

Please sign in to comment.