diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-12-05 17:46:33 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-12-05 18:25:29 +0100 |
commit | f3aaa9a95cc2b61f1f255472d7014d08faa66561 (patch) | |
tree | 95e70c8d0ed5b6f1c71c32a77cb7d6cf8478c9d4 /client/src/app/account/account-videos/account-videos.component.ts | |
parent | d235f6b0d1054a2a3451dacade927caefce8f30c (diff) | |
download | PeerTube-f3aaa9a95cc2b61f1f255472d7014d08faa66561.tar.gz PeerTube-f3aaa9a95cc2b61f1f255472d7014d08faa66561.tar.zst PeerTube-f3aaa9a95cc2b61f1f255472d7014d08faa66561.zip |
Fix client search
Diffstat (limited to 'client/src/app/account/account-videos/account-videos.component.ts')
-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 | } |