Skip to content

Commit

Permalink
Fix typescript boolean error in exam list
Browse files Browse the repository at this point in the history
  • Loading branch information
VirmasaloA committed Oct 24, 2024
1 parent 0e2e344 commit 7260a02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<xm-table-sort
by="course.code"
text="i18n_course_code"
sliced="{{ true }}"
[sliced]="true"
[predicate]="sorting.predicate"
[reverse]="sorting.reverse"
(click)="setPredicate('course.code')"
Expand Down Expand Up @@ -68,7 +68,7 @@
<xm-table-sort
by="{{ column.property }}"
text="{{ column.text }}"
sliced="{{ !!column.sliced }}"
[sliced]="!!column.sliced"
[predicate]="sorting.predicate"
[reverse]="sorting.reverse"
(click)="setPredicate(column.property)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export class TeacherDashboardComponent implements OnInit {
property: 'assessedCount',
link: ['/staff/exams', '__', '5'],
checkOwnership: true,
sliced: true,
},
];
}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/shared/sorting/table-sort.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class TableSortComponent {
@Input() predicate = '';
@Input() text = '';
@Input() reverse = false;
@Input() sliced: boolean | string = false;
@Input() sliced = false;

getSortClass = () =>
this.by === this.predicate ? (this.reverse ? 'bi-sort-alpha-down' : 'bi-sort-alpha-up') : 'bi-arrow-down-up';
Expand Down

0 comments on commit 7260a02

Please sign in to comment.