From e8f902c05cb35f6d5e9b75a23ddabd51c220a976 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 22 Jul 2019 16:04:44 +0200 Subject: Use search client scope --- client/src/app/search/search.component.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'client/src/app/search/search.component.ts') diff --git a/client/src/app/search/search.component.ts b/client/src/app/search/search.component.ts index b1d732d68..55637771e 100644 --- a/client/src/app/search/search.component.ts +++ b/client/src/app/search/search.component.ts @@ -11,6 +11,7 @@ import { VideoChannel } from '@app/shared/video-channel/video-channel.model' import { immutableAssign } from '@app/shared/misc/utils' import { Video } from '@app/shared/video/video.model' import { HooksService } from '@app/core/plugins/hooks.service' +import { PluginService } from '@app/core/plugins/plugin.service' @Component({ selector: 'my-search', @@ -43,7 +44,8 @@ export class SearchComponent implements OnInit, OnDestroy { private notifier: Notifier, private searchService: SearchService, private authService: AuthService, - private hooks: HooksService + private hooks: HooksService, + private pluginService: PluginService ) { } get user () { @@ -51,6 +53,8 @@ export class SearchComponent implements OnInit, OnDestroy { } ngOnInit () { + this.pluginService.loadPluginsByScope('search') + this.subActivatedRoute = this.route.queryParams.subscribe( queryParams => { const querySearch = queryParams['search'] @@ -175,7 +179,7 @@ export class SearchComponent implements OnInit, OnDestroy { return this.hooks.wrapObsFun( this.searchService.searchVideos.bind(this.searchService), params, - 'common', + 'search', 'filter:api.search.videos.list.params', 'filter:api.search.videos.list.result' ) @@ -190,7 +194,7 @@ export class SearchComponent implements OnInit, OnDestroy { return this.hooks.wrapObsFun( this.searchService.searchVideoChannels.bind(this.searchService), params, - 'common', + 'search', 'filter:api.search.video-channels.list.params', 'filter:api.search.video-channels.list.result' ) -- cgit v1.2.3