]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/core/core.module.ts
Fix title and action buttons in video watch
[github/Chocobozzz/PeerTube.git] / client / src / app / core / core.module.ts
index 382febe5c86aa4f8346053a02073a233ac6e0134..a58fe6ebe4842d1db0079614500124cae35c734f 100644 (file)
@@ -2,14 +2,15 @@ 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'
 
 @NgModule({
@@ -17,33 +18,32 @@ import { throwIfAlreadyLoaded } from './module-import-guard'
     CommonModule,
     HttpModule,
     RouterModule,
+    BrowserAnimationsModule,
 
     ModalModule,
     SimpleNotificationsModule.forRoot()
   ],
 
   declarations: [
-    ConfirmComponent,
-    MenuComponent,
-    MenuAdminComponent
+    ConfirmComponent
   ],
 
   exports: [
     SimpleNotificationsModule,
 
-    ConfirmComponent,
-    MenuComponent,
-    MenuAdminComponent
+    ConfirmComponent
   ],
 
   providers: [
     AuthService,
     ConfirmService,
-    ConfigService
+    ServerService,
+    LoginGuard,
+    UserRightGuard
   ]
 })
 export class CoreModule {
-  constructor ( @Optional() @SkipSelf() parentModule: CoreModule) {
+  constructor (@Optional() @SkipSelf() parentModule: CoreModule) {
     throwIfAlreadyLoaded(parentModule, 'CoreModule')
   }
 }