aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/video-list/video-local.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/videos/video-list/video-local.component.ts')
-rw-r--r--client/src/app/videos/video-list/video-local.component.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/client/src/app/videos/video-list/video-local.component.ts b/client/src/app/videos/video-list/video-local.component.ts
index 8cac2c12c..8f9d50a7b 100644
--- a/client/src/app/videos/video-list/video-local.component.ts
+++ b/client/src/app/videos/video-list/video-local.component.ts
@@ -1,4 +1,4 @@
1import { Component, OnInit } from '@angular/core' 1import { Component, OnDestroy, OnInit } from '@angular/core'
2import { ActivatedRoute, Router } from '@angular/router' 2import { ActivatedRoute, Router } from '@angular/router'
3import { immutableAssign } from '@app/shared/misc/utils' 3import { immutableAssign } from '@app/shared/misc/utils'
4import { NotificationsService } from 'angular2-notifications' 4import { NotificationsService } from 'angular2-notifications'
@@ -12,7 +12,7 @@ import { VideoService } from '../../shared/video/video.service'
12 styleUrls: [ '../../shared/video/abstract-video-list.scss' ], 12 styleUrls: [ '../../shared/video/abstract-video-list.scss' ],
13 templateUrl: '../../shared/video/abstract-video-list.html' 13 templateUrl: '../../shared/video/abstract-video-list.html'
14}) 14})
15export class VideoLocalComponent extends AbstractVideoList implements OnInit { 15export class VideoLocalComponent extends AbstractVideoList implements OnInit, OnDestroy {
16 titlePage = 'Local videos' 16 titlePage = 'Local videos'
17 currentRoute = '/videos/local' 17 currentRoute = '/videos/local'
18 sort = '-createdAt' as SortField 18 sort = '-createdAt' as SortField
@@ -29,6 +29,10 @@ export class VideoLocalComponent extends AbstractVideoList implements OnInit {
29 super.ngOnInit() 29 super.ngOnInit()
30 } 30 }
31 31
32 ngOnDestroy () {
33 super.ngOnDestroy()
34 }
35
32 getVideosObservable (page: number) { 36 getVideosObservable (page: number) {
33 const newPagination = immutableAssign(this.pagination, { currentPage: page }) 37 const newPagination = immutableAssign(this.pagination, { currentPage: page })
34 38