import { Component, OnDestroy, OnInit } from '@angular/core'
import { ActivatedRoute, Router } from '@angular/router'
import { Component, OnDestroy, OnInit } from '@angular/core'
import { ActivatedRoute, Router } from '@angular/router'
import { AuthService } from '../../core/auth'
import { AbstractVideoList } from '../../shared/video/abstract-video-list'
import { VideoSortField } from '../../shared/video/sort-field.type'
import { VideoService } from '../../shared/video/video.service'
import { I18n } from '@ngx-translate/i18n-polyfill'
import { ScreenService } from '@app/shared/misc/screen.service'
import { AuthService } from '../../core/auth'
import { AbstractVideoList } from '../../shared/video/abstract-video-list'
import { VideoSortField } from '../../shared/video/sort-field.type'
import { VideoService } from '../../shared/video/video.service'
import { I18n } from '@ngx-translate/i18n-polyfill'
import { ScreenService } from '@app/shared/misc/screen.service'
- protected location: Location,
- protected notificationsService: NotificationsService,
+ protected serverService: ServerService,
+ protected router: Router,
+ protected notifier: Notifier,
protected screenService: ScreenService,
private videoService: VideoService
) {
protected screenService: ScreenService,
private videoService: VideoService
) {
getVideosObservable (page: number) {
const newPagination = immutableAssign(this.pagination, { currentPage: page })
getVideosObservable (page: number) {
const newPagination = immutableAssign(this.pagination, { currentPage: page })
- return this.videoService.getVideos(newPagination, this.sort, undefined, this.category)
+ return this.videoService.getVideos(newPagination, this.sort, undefined, this.categoryOneOf)