Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 36a7b89a authored by Joze RIHTARSIC's avatar Joze RIHTARSIC
Browse files

[EDELIVERY-13956] UI: event table filter is not working

parent b000544c
Branches bugfix/EDELIVERY-13956-event-filter-not-working-ok
No related tags found
No related merge requests found
Pipeline #207279 failed
......@@ -106,6 +106,12 @@ export class DocumentEventsPanelComponent implements AfterViewInit, BeforeLeaveG
this.eventDataSource.paginator = this.paginator;
this.eventDataSource.sort = this.sort;
// add custom filter to exclude filtering on event description
this.eventDataSource.filterPredicate = (data: DocumentVersionEventRo, filter: string) => {
return data.eventType?.toLowerCase().includes(filter)
|| data.username?.toLowerCase().includes(filter)
|| data.eventSourceType?.toLowerCase().includes(filter)
|| data.eventOn?.toLocaleString().toLowerCase().includes(filter);
};
}
applyFilter(event: Event) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment