diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-22 15:40:13 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | 93cae47925e4dd68b7d34a41927b2740b4fab1b4 (patch) | |
tree | f649ab49fab1886b434e164591990cc99b234466 /client/src/app/app.component.ts | |
parent | 587568e1cc0e33c023c1ac62dd28fef313285250 (diff) | |
download | PeerTube-93cae47925e4dd68b7d34a41927b2740b4fab1b4.tar.gz PeerTube-93cae47925e4dd68b7d34a41927b2740b4fab1b4.tar.zst PeerTube-93cae47925e4dd68b7d34a41927b2740b4fab1b4.zip |
Add client hooks
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 () { |