From c9e3eeedad67649d9b7aec8897b738d0ad63ec1f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 23 Jul 2019 12:16:34 +0200 Subject: Lazy load client script scopes --- client/src/app/search/search.component.ts | 4 +--- 1 file changed, 1 insertion(+), 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 691e57619..5c4bb9379 100644 --- a/client/src/app/search/search.component.ts +++ b/client/src/app/search/search.component.ts @@ -53,8 +53,6 @@ export class SearchComponent implements OnInit, OnDestroy { } ngOnInit () { - this.pluginService.loadPluginsByScope('search') - this.subActivatedRoute = this.route.queryParams.subscribe( queryParams => { const querySearch = queryParams['search'] @@ -80,7 +78,7 @@ export class SearchComponent implements OnInit, OnDestroy { err => this.notifier.error(err.text) ) - this.hooks.runAction('action:search.init') + this.hooks.runAction('action:search.init', 'search') } ngOnDestroy () { -- cgit v1.2.3