From 042b744a485dff69a532989a9da0826a95c137e3 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 21 Mar 2021 08:45:23 +0100 Subject: [PATCH] fixing faces person search link --- src/frontend/app/ui/faces/face/face.component.html | 2 +- src/frontend/app/ui/faces/face/face.component.ts | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/frontend/app/ui/faces/face/face.component.html b/src/frontend/app/ui/faces/face/face.component.html index fa2b011d..ad0a6c04 100644 --- a/src/frontend/app/ui/faces/face/face.component.html +++ b/src/frontend/app/ui/faces/face/face.component.html @@ -1,4 +1,4 @@ - diff --git a/src/frontend/app/ui/faces/face/face.component.ts b/src/frontend/app/ui/faces/face/face.component.ts index 26ffd374..7a43fd85 100644 --- a/src/frontend/app/ui/faces/face/face.component.ts +++ b/src/frontend/app/ui/faces/face/face.component.ts @@ -7,7 +7,6 @@ import {FacesService} from '../faces.service'; import {AuthenticationService} from '../../../model/network/authentication.service'; import {Config} from '../../../../../common/config/public/Config'; import {SearchQueryTypes, TextSearch, TextSearchQueryMatchTypes} from '../../../../../common/entities/SearchQueryDTO'; -import {QueryParams} from '../../../../../common/QueryParams'; @Component({ selector: 'app-face', @@ -20,7 +19,7 @@ export class FaceComponent implements OnInit, OnDestroy { @Input() size: number; thumbnail: PersonThumbnail = null; - public searchQuery: any; + public searchQueryDTOstr: string; constructor(private thumbnailService: ThumbnailManagerService, private _sanitizer: DomSanitizer, @@ -35,12 +34,11 @@ export class FaceComponent implements OnInit, OnDestroy { ngOnInit() { this.thumbnail = this.thumbnailService.getPersonThumbnail(this.person); - this.searchQuery = {}; - this.searchQuery[QueryParams.gallery.search.query] = { + this.searchQueryDTOstr = JSON.stringify({ type: SearchQueryTypes.person, text: this.person.name, matchType: TextSearchQueryMatchTypes.exact_match - }; + }); }