From 6e059cf82ef9fed41a78bde76e29603b0f8928cc Mon Sep 17 00:00:00 2001 From: GabrielMeyer Date: Mon, 12 Aug 2019 11:39:21 +0200 Subject: [PATCH] Adds the option to filter a list by function-values - In `agenda-list.component` the user can search through the name of the topic. --- .../list-view-table/list-view-table.component.ts | 8 +++++++- .../components/agenda-list/agenda-list.component.ts | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/client/src/app/shared/components/list-view-table/list-view-table.component.ts b/client/src/app/shared/components/list-view-table/list-view-table.component.ts index 567eaa6eb..8d7d1297d 100644 --- a/client/src/app/shared/components/list-view-table/list-view-table.component.ts +++ b/client/src/app/shared/components/list-view-table/list-view-table.component.ts @@ -331,7 +331,13 @@ export class ListViewTableComponent impleme /** * Define extra filter properties */ - public filterProps = ['itemNumber', 'comment']; + public filterProps = ['itemNumber', 'comment', 'getListTitle']; /** * The usual constructor for components @@ -191,7 +191,7 @@ export class AgendaListComponent extends BaseListViewComponent impleme if (this.isMultiSelect || !this.canManage) { return; } - const dialogRef = this.dialog.open(ItemInfoDialogComponent, infoDialogSettings); + const dialogRef = this.dialog.open(ItemInfoDialogComponent, { ...infoDialogSettings, data: item }); dialogRef.afterClosed().subscribe(result => { if (result) {