]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/core/core.module.ts
Upgrade client dep
[github/Chocobozzz/PeerTube.git] / client / src / app / core / core.module.ts
index 382febe5c86aa4f8346053a02073a233ac6e0134..c4ce2b637df7a4fb75cad592ac48cfefbc80d8e7 100644 (file)
@@ -2,12 +2,14 @@ import { NgModule, Optional, SkipSelf } from '@angular/core'
 import { CommonModule } from '@angular/common'
 import { HttpModule } from '@angular/http'
 import { RouterModule } from '@angular/router'
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
 
 import { SimpleNotificationsModule } from 'angular2-notifications'
 import { ModalModule } from 'ngx-bootstrap/modal'
 
 import { AuthService } from './auth'
-import { ConfigService } from './config'
+import { LoginGuard, UserRightGuard } from './routing'
+import { ServerService } from './server'
 import { ConfirmComponent, ConfirmService } from './confirm'
 import { MenuComponent, MenuAdminComponent } from './menu'
 import { throwIfAlreadyLoaded } from './module-import-guard'
@@ -17,6 +19,7 @@ import { throwIfAlreadyLoaded } from './module-import-guard'
     CommonModule,
     HttpModule,
     RouterModule,
+    BrowserAnimationsModule,
 
     ModalModule,
     SimpleNotificationsModule.forRoot()
@@ -39,11 +42,13 @@ import { throwIfAlreadyLoaded } from './module-import-guard'
   providers: [
     AuthService,
     ConfirmService,
-    ConfigService
+    ServerService,
+    LoginGuard,
+    UserRightGuard
   ]
 })
 export class CoreModule {
-  constructor ( @Optional() @SkipSelf() parentModule: CoreModule) {
+  constructor (@Optional() @SkipSelf() parentModule: CoreModule) {
     throwIfAlreadyLoaded(parentModule, 'CoreModule')
   }
 }