From 404b54e14f6623c1644a8c87ca22f4bab98d5484 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 25 Oct 2017 16:43:19 +0200 Subject: Adapt client with video channels --- client/src/app/videos/+video-watch/video-download.component.ts | 4 ++-- client/src/app/videos/+video-watch/video-report.component.ts | 4 ++-- client/src/app/videos/+video-watch/video-share.component.ts | 4 ++-- client/src/app/videos/+video-watch/video-watch.component.ts | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'client/src/app/videos/+video-watch') diff --git a/client/src/app/videos/+video-watch/video-download.component.ts b/client/src/app/videos/+video-watch/video-download.component.ts index 22149aa6b..c32f8d586 100644 --- a/client/src/app/videos/+video-watch/video-download.component.ts +++ b/client/src/app/videos/+video-watch/video-download.component.ts @@ -2,7 +2,7 @@ import { Component, Input, ViewChild } from '@angular/core' import { ModalDirective } from 'ngx-bootstrap/modal' -import { Video } from '../shared' +import { VideoDetails } from '../shared' @Component({ selector: 'my-video-download', @@ -10,7 +10,7 @@ import { Video } from '../shared' styles: [ '.resolution-block { margin-top: 20px; }' ] }) export class VideoDownloadComponent { - @Input() video: Video = null + @Input() video: VideoDetails = null @ViewChild('modal') modal: ModalDirective diff --git a/client/src/app/videos/+video-watch/video-report.component.ts b/client/src/app/videos/+video-watch/video-report.component.ts index d9c83a640..fc9b5a9d4 100644 --- a/client/src/app/videos/+video-watch/video-report.component.ts +++ b/client/src/app/videos/+video-watch/video-report.component.ts @@ -5,14 +5,14 @@ import { ModalDirective } from 'ngx-bootstrap/modal' import { NotificationsService } from 'angular2-notifications' import { FormReactive, VideoAbuseService, VIDEO_ABUSE_REASON } from '../../shared' -import { Video, VideoService } from '../shared' +import { VideoDetails, VideoService } from '../shared' @Component({ selector: 'my-video-report', templateUrl: './video-report.component.html' }) export class VideoReportComponent extends FormReactive implements OnInit { - @Input() video: Video = null + @Input() video: VideoDetails = null @ViewChild('modal') modal: ModalDirective diff --git a/client/src/app/videos/+video-watch/video-share.component.ts b/client/src/app/videos/+video-watch/video-share.component.ts index 414ed28c6..aeef65ecf 100644 --- a/client/src/app/videos/+video-watch/video-share.component.ts +++ b/client/src/app/videos/+video-watch/video-share.component.ts @@ -2,14 +2,14 @@ import { Component, Input, ViewChild } from '@angular/core' import { ModalDirective } from 'ngx-bootstrap/modal' -import { Video } from '../shared' +import { VideoDetails } from '../shared' @Component({ selector: 'my-video-share', templateUrl: './video-share.component.html' }) export class VideoShareComponent { - @Input() video: Video = null + @Input() video: VideoDetails = null @ViewChild('modal') modal: ModalDirective diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts index f45ffd82f..529e2e84f 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts @@ -13,7 +13,7 @@ import { AuthService, ConfirmService } from '../../core' import { VideoDownloadComponent } from './video-download.component' import { VideoShareComponent } from './video-share.component' import { VideoReportComponent } from './video-report.component' -import { Video, VideoService } from '../shared' +import { VideoDetails, VideoService } from '../shared' import { VideoBlacklistService } from '../../shared' import { UserVideoRateType, VideoRateType } from '../../../../../shared' @@ -35,7 +35,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { playerElement: HTMLMediaElement uploadSpeed: number userRating: UserVideoRateType = null - video: Video = null + video: VideoDetails = null videoPlayerLoaded = false videoNotFound = false @@ -211,7 +211,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { ) } - private onVideoFetched (video: Video) { + private onVideoFetched (video: VideoDetails) { this.video = video let observable -- cgit v1.2.3