From 68e24d727969a73a13e3c29b4d3bcfe50c3c52be Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 16 Feb 2018 17:24:47 +0100 Subject: Add loading bar when updating a video --- client/src/app/core/core.module.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'client/src/app/core') diff --git a/client/src/app/core/core.module.ts b/client/src/app/core/core.module.ts index a58fe6ebe..93c9741a7 100644 --- a/client/src/app/core/core.module.ts +++ b/client/src/app/core/core.module.ts @@ -1,8 +1,9 @@ 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 { LoadingBarModule } from '@ngx-loading-bar/core' +import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client' import { SimpleNotificationsModule } from 'angular2-notifications' import { ModalModule } from 'ngx-bootstrap/modal' @@ -16,12 +17,14 @@ import { throwIfAlreadyLoaded } from './module-import-guard' @NgModule({ imports: [ CommonModule, - HttpModule, RouterModule, BrowserAnimationsModule, ModalModule, - SimpleNotificationsModule.forRoot() + SimpleNotificationsModule.forRoot(), + + LoadingBarHttpClientModule, + LoadingBarModule.forRoot() ], declarations: [ @@ -30,6 +33,8 @@ import { throwIfAlreadyLoaded } from './module-import-guard' exports: [ SimpleNotificationsModule, + LoadingBarHttpClientModule, + LoadingBarModule, ConfirmComponent ], -- cgit v1.2.3