From 93cae47925e4dd68b7d34a41927b2740b4fab1b4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 22 Jul 2019 15:40:13 +0200 Subject: Add client hooks --- client/src/app/app.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client/src/app/app.component.ts') diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index 0ebd628fc..bde97c68b 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts @@ -10,6 +10,7 @@ import { I18n } from '@ngx-translate/i18n-polyfill' import { fromEvent } from 'rxjs' import { ViewportScroller } from '@angular/common' import { PluginService } from '@app/core/plugins/plugin.service' +import { HooksService } from '@app/core/plugins/hooks.service' @Component({ selector: 'my-app', @@ -33,7 +34,8 @@ export class AppComponent implements OnInit { private redirectService: RedirectService, private screenService: ScreenService, private hotkeysService: HotkeysService, - private themeService: ThemeService + private themeService: ThemeService, + private hooks: HooksService ) { } get serverVersion () { @@ -206,7 +208,7 @@ export class AppComponent implements OnInit { await this.pluginService.loadPluginsByScope('common') - this.pluginService.runHook('action:application.loaded') + this.hooks.runAction('action:application.init') } private initHotkeys () { -- cgit v1.2.3