diff options
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r-- | client/src/app/app.component.ts | 6 |
1 files changed, 4 insertions, 2 deletions
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' | |||
10 | import { fromEvent } from 'rxjs' | 10 | import { fromEvent } from 'rxjs' |
11 | import { ViewportScroller } from '@angular/common' | 11 | import { ViewportScroller } from '@angular/common' |
12 | import { PluginService } from '@app/core/plugins/plugin.service' | 12 | import { PluginService } from '@app/core/plugins/plugin.service' |
13 | import { HooksService } from '@app/core/plugins/hooks.service' | ||
13 | 14 | ||
14 | @Component({ | 15 | @Component({ |
15 | selector: 'my-app', | 16 | selector: 'my-app', |
@@ -33,7 +34,8 @@ export class AppComponent implements OnInit { | |||
33 | private redirectService: RedirectService, | 34 | private redirectService: RedirectService, |
34 | private screenService: ScreenService, | 35 | private screenService: ScreenService, |
35 | private hotkeysService: HotkeysService, | 36 | private hotkeysService: HotkeysService, |
36 | private themeService: ThemeService | 37 | private themeService: ThemeService, |
38 | private hooks: HooksService | ||
37 | ) { } | 39 | ) { } |
38 | 40 | ||
39 | get serverVersion () { | 41 | get serverVersion () { |
@@ -206,7 +208,7 @@ export class AppComponent implements OnInit { | |||
206 | 208 | ||
207 | await this.pluginService.loadPluginsByScope('common') | 209 | await this.pluginService.loadPluginsByScope('common') |
208 | 210 | ||
209 | this.pluginService.runHook('action:application.loaded') | 211 | this.hooks.runAction('action:application.init') |
210 | } | 212 | } |
211 | 213 | ||
212 | private initHotkeys () { | 214 | private initHotkeys () { |