From ec61fb7e2cbb3897fe29cb54ec3a1ec864163c91 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 9 Oct 2017 14:40:05 +0200 Subject: Upgrade client dependencies --- .../app/core/routing/preload-selected-modules-list.ts | 16 ++++++++-------- client/src/app/videos/videos.component.ts | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'client/src') diff --git a/client/src/app/core/routing/preload-selected-modules-list.ts b/client/src/app/core/routing/preload-selected-modules-list.ts index dd5be6ad9..8a458ec3e 100644 --- a/client/src/app/core/routing/preload-selected-modules-list.ts +++ b/client/src/app/core/routing/preload-selected-modules-list.ts @@ -1,16 +1,16 @@ -import { Route, PreloadingStrategy } from '@angular/router'; -import { Observable } from 'rxjs/Observable'; -import 'rxjs/add/observable/timer'; -import 'rxjs/add/operator/switchMap'; +import { Route, PreloadingStrategy } from '@angular/router' +import { Observable } from 'rxjs/Observable' +import 'rxjs/add/observable/timer' +import 'rxjs/add/operator/switchMap' export class PreloadSelectedModulesList implements PreloadingStrategy { - preload(route: Route, load: Function): Observable { - if (!route.data || !route.data.preload) return Observable.of(null); + preload (route: Route, load: Function): Observable { + if (!route.data || !route.data.preload) return Observable.of(null) if (typeof route.data.preload === 'number') { - return Observable.timer(route.data.preload).switchMap(() => load()); + return Observable.timer(route.data.preload).switchMap(() => load()) } - return load(); + return load() } } diff --git a/client/src/app/videos/videos.component.ts b/client/src/app/videos/videos.component.ts index 26d9d28d4..80ff46a0a 100644 --- a/client/src/app/videos/videos.component.ts +++ b/client/src/app/videos/videos.component.ts @@ -6,7 +6,7 @@ import { VideoService } from './shared' template: '' }) export class VideosComponent implements OnInit { - constructor(private videoService: VideoService) {} + constructor (private videoService: VideoService) {} ngOnInit () { this.videoService.loadVideoCategories() -- cgit v1.2.3