1 import { Component, OnInit } from '@angular/core'
2 import { ActivatedRoute, Router } from '@angular/router'
3 import { NotificationsService } from 'angular2-notifications'
4 import { AbstractVideoList } from '../../shared/video/abstract-video-list'
5 import { VideoService } from '../../shared/video/video.service'
8 selector: 'my-account-videos',
9 templateUrl: './account-videos.component.html',
10 styleUrls: [ './account-videos.component.scss' ]
12 export class AccountVideosComponent extends AbstractVideoList implements OnInit {
13 titlePage = 'My videos'
14 currentRoute = '/account/videos'
16 constructor (protected router: Router,
17 protected route: ActivatedRoute,
18 protected notificationsService: NotificationsService,
19 private videoService: VideoService) {
27 getVideosObservable () {
28 return this.videoService.getMyVideos(this.pagination, this.sort)