diff options
Diffstat (limited to 'client/src')
3 files changed, 9 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-video-live/live-stream-information.component.html b/client/src/app/shared/shared-video-live/live-stream-information.component.html index 99c7dbd4c..cf30c1ce1 100644 --- a/client/src/app/shared/shared-video-live/live-stream-information.component.html +++ b/client/src/app/shared/shared-video-live/live-stream-information.component.html | |||
@@ -42,6 +42,7 @@ | |||
42 | <span i18n>Started on {{ session.startDate | date:'medium' }}</span> | 42 | <span i18n>Started on {{ session.startDate | date:'medium' }}</span> |
43 | <span i18n *ngIf="session.endDate">Ended on {{ session.endDate | date:'medium' }}</span> | 43 | <span i18n *ngIf="session.endDate">Ended on {{ session.endDate | date:'medium' }}</span> |
44 | <a i18n *ngIf="session.replayVideo" [routerLink]="getVideoUrl(session.replayVideo)" target="_blank">Go to replay</a> | 44 | <a i18n *ngIf="session.replayVideo" [routerLink]="getVideoUrl(session.replayVideo)" target="_blank">Go to replay</a> |
45 | <span i18n *ngIf="isReplayBeingProcessed(session)">Replay is being processed...</span> | ||
45 | </div> | 46 | </div> |
46 | </div> | 47 | </div> |
47 | </div> | 48 | </div> |
diff --git a/client/src/app/shared/shared-video-live/live-stream-information.component.ts b/client/src/app/shared/shared-video-live/live-stream-information.component.ts index c60f7fe2f..3dd59bb57 100644 --- a/client/src/app/shared/shared-video-live/live-stream-information.component.ts +++ b/client/src/app/shared/shared-video-live/live-stream-information.component.ts | |||
@@ -49,6 +49,13 @@ export class LiveStreamInformationComponent { | |||
49 | return errors[session.error] | 49 | return errors[session.error] |
50 | } | 50 | } |
51 | 51 | ||
52 | isReplayBeingProcessed (session: LiveVideoSession) { | ||
53 | // Running live | ||
54 | if (!session.endDate) return false | ||
55 | |||
56 | return session.saveReplay && !session.endingProcessed | ||
57 | } | ||
58 | |||
52 | private loadLiveInfo (video: Video) { | 59 | private loadLiveInfo (video: Video) { |
53 | this.liveVideoService.getVideoLive(video.id) | 60 | this.liveVideoService.getVideoLive(video.id) |
54 | .subscribe(live => this.live = live) | 61 | .subscribe(live => this.live = live) |
diff --git a/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts b/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts index ed6a4afc0..56527ddfa 100644 --- a/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts +++ b/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts | |||
@@ -230,7 +230,7 @@ export class VideoActionsDropdownComponent implements OnChanges { | |||
230 | 230 | ||
231 | let message = $localize`Do you really want to delete ${this.video.name}?` | 231 | let message = $localize`Do you really want to delete ${this.video.name}?` |
232 | if (this.video.isLive) { | 232 | if (this.video.isLive) { |
233 | message += ' ' + $localize`The live stream will be automatically terminated.` | 233 | message += ' ' + $localize`The live stream will be automatically terminated and replays won't be saved.` |
234 | } | 234 | } |
235 | 235 | ||
236 | const res = await this.confirmService.confirm(message, $localize`Delete ${this.video.name}`) | 236 | const res = await this.confirmService.confirm(message, $localize`Delete ${this.video.name}`) |