diff --git a/apps/red-ui/src/app/modules/dossier/screens/search-screen/search-screen.component.html b/apps/red-ui/src/app/modules/dossier/screens/search-screen/search-screen.component.html index 0a0c28e2c..f8c54b661 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/search-screen/search-screen.component.html +++ b/apps/red-ui/src/app/modules/dossier/screens/search-screen/search-screen.component.html @@ -1,4 +1,4 @@ -
+
; readonly routerLink: string; readonly status: string; readonly dossierName: string; @@ -25,8 +25,8 @@ interface ListItem extends Listable { } interface SearchInput { - query: string; - dossierIds?: string[]; + readonly query: string; + readonly dossierIds?: readonly string[]; } @Component({ @@ -37,10 +37,12 @@ interface SearchInput { export class SearchScreenComponent extends ListingComponent implements OnDestroy, OnInit { readonly fileStatusTranslations = fileStatusTranslations; readonly searchPositions = SearchPositions; - @ViewChild('filenameTemplate', { static: true }) filenameTemplate: TemplateRef; - @ViewChild('statusTemplate', { static: true }) statusTemplate: TemplateRef; - @ViewChild('dossierTemplate', { static: true }) dossierTemplate: TemplateRef; - @ViewChild('pagesTemplate', { static: true }) pagesTemplate: TemplateRef; + + @ViewChild('filenameTemplate', { static: true }) readonly filenameTemplate: TemplateRef; + @ViewChild('statusTemplate', { static: true }) readonly statusTemplate: TemplateRef; + @ViewChild('dossierTemplate', { static: true }) readonly dossierTemplate: TemplateRef; + @ViewChild('pagesTemplate', { static: true }) readonly pagesTemplate: TemplateRef; + readonly tableHeaderLabel = _('search-screen.table-header'); tableColumnConfigs: TableColumnConfig[]; readonly search$ = new BehaviorSubject(null); @@ -68,6 +70,7 @@ export class SearchScreenComponent extends ListingComponent implements this.filterService.addFilterGroup({ slug: 'dossiers', label: this._translateService.instant('search-screen.filters.by-dossier'), + filterceptionPlaceholder: this._translateService.instant('search-screen.filters.search-placeholder'), icon: 'red:folder', filters: this._appStateService.allDossiers.map(dossier => ({ key: dossier.dossierId, @@ -118,7 +121,7 @@ export class SearchScreenComponent extends ListingComponent implements private _search(searchInput: SearchInput): Observable { return this._searchControllerService.search({ - dossierIds: searchInput.dossierIds, + dossierIds: [...searchInput.dossierIds], queryString: searchInput.query ?? '', page: 1, returnSections: false, @@ -161,7 +164,7 @@ export class SearchScreenComponent extends ListingComponent implements dossierId, unmatched: unmatchedTerms || null, highlights, - status, + status: fileWrapper.status, numberOfPages: fileWrapper.numberOfPages, dossierName: this._getDossierWrapper(dossierId).dossierName, filename: fileWrapper.filename, diff --git a/apps/red-ui/src/assets/i18n/de.json b/apps/red-ui/src/assets/i18n/de.json index 651fbbc07..e2610469f 100644 --- a/apps/red-ui/src/assets/i18n/de.json +++ b/apps/red-ui/src/assets/i18n/de.json @@ -1209,7 +1209,8 @@ "status": "" }, "filters": { - "by-dossier": "" + "by-dossier": "", + "search-placeholder": "Dossier..." }, "missing": "", "must-contain": "", diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json index 9731a5f02..1eb06a6d1 100644 --- a/apps/red-ui/src/assets/i18n/en.json +++ b/apps/red-ui/src/assets/i18n/en.json @@ -1365,7 +1365,8 @@ "status": "Status" }, "filters": { - "by-dossier": "Filter by Dossier" + "by-dossier": "Filter by Dossier", + "search-placeholder": "Dossier name..." }, "missing": "Missing", "must-contain": "Must contain",