@ -5,7 +5,7 @@
<mat-label i18n>Type</mat-label>
<mat-select multiple [formControl]="typesFilter">
@for (
activityType of activityTypesTranslationMap | keyvalue;
activityType of activityTypesTranslationMap | keyvalue: sortByValue;
track activityType.key
) {
<mat-option [value]="activityType.key">
@ -353,6 +353,13 @@ export class GfActivitiesTableComponent implements AfterViewInit, OnInit {
this.activityToUpdate.emit(aActivity);
}
public sortByValue(
a: { key: ActivityType; value: string },
b: { key: ActivityType; value: string }
return a.value.localeCompare(b.value);
public toggleAllRows() {
if (this.areAllRowsSelected()) {
this.selectedRows.clear();