X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fcore%2Fcore.module.ts;h=c4ce2b637df7a4fb75cad592ac48cfefbc80d8e7;hb=7a8032bb6d1d2fdfce9b23af13c3ed1cdfac91e9;hp=9ca94dd0e7b138b0c60d44c5b881acf7286aa094;hpb=e7dbeae8d915cdf4470ceb51c2724b04148b30b5;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/core/core.module.ts b/client/src/app/core/core.module.ts index 9ca94dd0e..c4ce2b637 100644 --- a/client/src/app/core/core.module.ts +++ b/client/src/app/core/core.module.ts @@ -8,7 +8,8 @@ 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' @@ -41,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') } }