import { Component, OnInit, OnDestroy } from '@angular/core'
import { ActivatedRoute, Router } from '@angular/router'
+import { Location } from '@angular/common'
import { immutableAssign } from '@app/shared/misc/utils'
import { ComponentPagination } from '@app/shared/rest/component-pagination.model'
import { NotificationsService } from 'angular2-notifications'
checkedVideos: { [ id: number ]: boolean } = {}
pagination: ComponentPagination = {
currentPage: 1,
- itemsPerPage: 10,
+ itemsPerPage: 5,
totalItems: null
}
protected authService: AuthService,
protected notificationsService: NotificationsService,
protected confirmService: ConfirmService,
+ protected location: Location,
private videoService: VideoService) {
super()
}
ngOnInit () {
super.ngOnInit()
+
+ // this.generateSyndicationList()
}
ngOnDestroy () {
return this.videoService.getMyVideos(newPagination, this.sort)
}
+ generateSyndicationList () {
+ throw new Error('Method not implemented.')
+ }
+
async deleteSelectedVideos () {
const toDeleteVideosIds = Object.keys(this.checkedVideos)
.filter(k => this.checkedVideos[k] === true)