aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-22 15:40:13 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commit93cae47925e4dd68b7d34a41927b2740b4fab1b4 (patch)
treef649ab49fab1886b434e164591990cc99b234466 /client/src/app/app.component.ts
parent587568e1cc0e33c023c1ac62dd28fef313285250 (diff)
downloadPeerTube-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.ts6
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'
10import { fromEvent } from 'rxjs' 10import { fromEvent } from 'rxjs'
11import { ViewportScroller } from '@angular/common' 11import { ViewportScroller } from '@angular/common'
12import { PluginService } from '@app/core/plugins/plugin.service' 12import { PluginService } from '@app/core/plugins/plugin.service'
13import { 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 () {