From a5cf76afa378aae81af2a9b0ce548e5d2582f832 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 25 Sep 2020 10:04:21 +0200 Subject: Add watch messages if live has not started --- .../video-add-components/video-go-live.component.html | 2 +- .../video-add-components/video-go-live.component.ts | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'client/src/app/+videos/+video-edit/video-add-components') diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.html b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.html index 6997f5388..8fae4044a 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.html +++ b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.html @@ -31,7 +31,7 @@
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts index 64fd4c4d4..0a9efc693 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts +++ b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts @@ -4,9 +4,9 @@ import { Router } from '@angular/router' import { AuthService, CanComponentDeactivate, Notifier, ServerService } from '@app/core' import { scrollToTop } from '@app/helpers' import { FormValidatorService } from '@app/shared/shared-forms' -import { VideoCaptionService, VideoEdit, VideoService, VideoLiveService } from '@app/shared/shared-main' +import { LiveVideoService, VideoCaptionService, VideoEdit, VideoService } from '@app/shared/shared-main' import { LoadingBarService } from '@ngx-loading-bar/core' -import { VideoCreate, VideoLive, VideoPrivacy } from '@shared/models' +import { LiveVideo, VideoCreate, VideoPrivacy } from '@shared/models' import { VideoSend } from './video-send' @Component({ @@ -23,7 +23,7 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, CanCompon isInUpdateForm = false - videoLive: VideoLive + liveVideo: LiveVideo videoId: number videoUUID: string error: string @@ -38,7 +38,7 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, CanCompon protected serverService: ServerService, protected videoService: VideoService, protected videoCaptionService: VideoCaptionService, - private videoLiveService: VideoLiveService, + private liveVideoService: LiveVideoService, private router: Router ) { super() @@ -69,7 +69,7 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, CanCompon const toPatch = Object.assign({}, video, { privacy: this.firstStepPrivacyId }) this.form.patchValue(toPatch) - this.videoLiveService.goLive(video).subscribe( + this.liveVideoService.goLive(video).subscribe( res => { this.videoId = res.video.id this.videoUUID = res.video.uuid @@ -114,10 +114,10 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, CanCompon } private fetchVideoLive () { - this.videoLiveService.getVideoLive(this.videoId) + this.liveVideoService.getVideoLive(this.videoId) .subscribe( - videoLive => { - this.videoLive = videoLive + liveVideo => { + this.liveVideo = liveVideo }, err => { -- cgit v1.2.3