aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+search/search.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+search/search.component.ts')
-rw-r--r--client/src/app/+search/search.component.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/+search/search.component.ts b/client/src/app/+search/search.component.ts
index 366fbd459..31394a1d1 100644
--- a/client/src/app/+search/search.component.ts
+++ b/client/src/app/+search/search.component.ts
@@ -1,4 +1,4 @@
1import { forkJoin, Subscription } from 'rxjs' 1import { forkJoin, Subject, Subscription } from 'rxjs'
2import { LinkType } from 'src/types/link.type' 2import { LinkType } from 'src/types/link.type'
3import { Component, OnDestroy, OnInit } from '@angular/core' 3import { Component, OnDestroy, OnInit } from '@angular/core'
4import { ActivatedRoute, Router } from '@angular/router' 4import { ActivatedRoute, Router } from '@angular/router'
@@ -44,6 +44,8 @@ export class SearchComponent implements OnInit, OnDestroy {
44 44
45 userMiniature: User 45 userMiniature: User
46 46
47 onSearchDataSubject = new Subject<any>()
48
47 private subActivatedRoute: Subscription 49 private subActivatedRoute: Subscription
48 private isInitialLoad = false // set to false to show the search filters on first arrival 50 private isInitialLoad = false // set to false to show the search filters on first arrival
49 51
@@ -147,6 +149,8 @@ export class SearchComponent implements OnInit, OnDestroy {
147 this.lastSearchTarget = this.advancedSearch.searchTarget 149 this.lastSearchTarget = this.advancedSearch.searchTarget
148 150
149 this.hasMoreResults = this.results.length < this.pagination.totalItems 151 this.hasMoreResults = this.results.length < this.pagination.totalItems
152
153 this.onSearchDataSubject.next(results)
150 }, 154 },
151 155
152 error: err => { 156 error: err => {