diff options
Diffstat (limited to 'client/src/app/account/account-videos')
-rw-r--r-- | client/src/app/account/account-videos/account-videos.component.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/client/src/app/account/account-videos/account-videos.component.ts b/client/src/app/account/account-videos/account-videos.component.ts index cc28f511a..1bc6c0a35 100644 --- a/client/src/app/account/account-videos/account-videos.component.ts +++ b/client/src/app/account/account-videos/account-videos.component.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { Component, OnDestroy, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { ActivatedRoute, Router } from '@angular/router' | 2 | import { ActivatedRoute, Router } from '@angular/router' |
3 | import { NotificationsService } from 'angular2-notifications' | 3 | import { NotificationsService } from 'angular2-notifications' |
4 | import { AbstractVideoList } from '../../shared/video/abstract-video-list' | 4 | import { AbstractVideoList } from '../../shared/video/abstract-video-list' |
@@ -9,7 +9,7 @@ import { VideoService } from '../../shared/video/video.service' | |||
9 | templateUrl: './account-videos.component.html', | 9 | templateUrl: './account-videos.component.html', |
10 | styleUrls: [ './account-videos.component.scss' ] | 10 | styleUrls: [ './account-videos.component.scss' ] |
11 | }) | 11 | }) |
12 | export class AccountVideosComponent extends AbstractVideoList implements OnInit, OnDestroy { | 12 | export class AccountVideosComponent extends AbstractVideoList implements OnInit { |
13 | titlePage = 'My videos' | 13 | titlePage = 'My videos' |
14 | currentRoute = '/account/videos' | 14 | currentRoute = '/account/videos' |
15 | 15 | ||
@@ -24,10 +24,6 @@ export class AccountVideosComponent extends AbstractVideoList implements OnInit, | |||
24 | super.ngOnInit() | 24 | super.ngOnInit() |
25 | } | 25 | } |
26 | 26 | ||
27 | ngOnDestroy () { | ||
28 | super.ngOnDestroy() | ||
29 | } | ||
30 | |||
31 | getVideosObservable () { | 27 | getVideosObservable () { |
32 | return this.videoService.getMyVideos(this.pagination, this.sort) | 28 | return this.videoService.getMyVideos(this.pagination, this.sort) |
33 | } | 29 | } |