diff options
Diffstat (limited to 'client/src/app/shared/video/abstract-video-list.ts')
-rw-r--r-- | client/src/app/shared/video/abstract-video-list.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/client/src/app/shared/video/abstract-video-list.ts b/client/src/app/shared/video/abstract-video-list.ts index d8a4b03af..d47df4da4 100644 --- a/client/src/app/shared/video/abstract-video-list.ts +++ b/client/src/app/shared/video/abstract-video-list.ts | |||
@@ -1,13 +1,11 @@ | |||
1 | import { debounceTime } from 'rxjs/operators' | ||
1 | import { ElementRef, OnDestroy, OnInit, ViewChild } from '@angular/core' | 2 | import { ElementRef, OnDestroy, OnInit, ViewChild } from '@angular/core' |
2 | import { ActivatedRoute, Router } from '@angular/router' | 3 | import { ActivatedRoute, Router } from '@angular/router' |
3 | import { Location } from '@angular/common' | 4 | import { Location } from '@angular/common' |
4 | import { isInMobileView } from '@app/shared/misc/utils' | 5 | import { isInMobileView } from '@app/shared/misc/utils' |
5 | import { InfiniteScrollerDirective } from '@app/shared/video/infinite-scroller.directive' | 6 | import { InfiniteScrollerDirective } from '@app/shared/video/infinite-scroller.directive' |
6 | import { NotificationsService } from 'angular2-notifications' | 7 | import { NotificationsService } from 'angular2-notifications' |
7 | import 'rxjs/add/operator/debounceTime' | 8 | import { fromEvent, Observable, Subscription } from 'rxjs' |
8 | import { Observable } from 'rxjs/Observable' | ||
9 | import { fromEvent } from 'rxjs/observable/fromEvent' | ||
10 | import { Subscription } from 'rxjs/Subscription' | ||
11 | import { AuthService } from '../../core/auth' | 9 | import { AuthService } from '../../core/auth' |
12 | import { ComponentPagination } from '../rest/component-pagination.model' | 10 | import { ComponentPagination } from '../rest/component-pagination.model' |
13 | import { VideoSortField } from './sort-field.type' | 11 | import { VideoSortField } from './sort-field.type' |
@@ -64,7 +62,7 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy { | |||
64 | this.loadRouteParams(routeParams) | 62 | this.loadRouteParams(routeParams) |
65 | 63 | ||
66 | this.resizeSubscription = fromEvent(window, 'resize') | 64 | this.resizeSubscription = fromEvent(window, 'resize') |
67 | .debounceTime(500) | 65 | .pipe(debounceTime(500)) |
68 | .subscribe(() => this.calcPageSizes()) | 66 | .subscribe(() => this.calcPageSizes()) |
69 | 67 | ||
70 | this.calcPageSizes() | 68 | this.calcPageSizes() |