diff options
Diffstat (limited to 'client/src/app/+videos')
-rw-r--r-- | client/src/app/+videos/+video-watch/shared/information/video-alert.component.html | 4 | ||||
-rw-r--r-- | client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.html b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.html index 33b5a47a0..6e5d0bcad 100644 --- a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.html +++ b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.html | |||
@@ -1,3 +1,7 @@ | |||
1 | <div i18n class="alert alert-warning" *ngIf="isVideoTranscodingFailed()"> | ||
2 | Transcoding failed, this video may not work properly. | ||
3 | </div> | ||
4 | |||
1 | <div i18n class="alert alert-warning" *ngIf="isVideoToImport()"> | 5 | <div i18n class="alert alert-warning" *ngIf="isVideoToImport()"> |
2 | The video is being imported, it will be available when the import is finished. | 6 | The video is being imported, it will be available when the import is finished. |
3 | </div> | 7 | </div> |
diff --git a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts index 257d463b4..addea53c0 100644 --- a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts +++ b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts | |||
@@ -14,6 +14,10 @@ export class VideoAlertComponent { | |||
14 | return this.video && this.video.state.id === VideoState.TO_TRANSCODE | 14 | return this.video && this.video.state.id === VideoState.TO_TRANSCODE |
15 | } | 15 | } |
16 | 16 | ||
17 | isVideoTranscodingFailed () { | ||
18 | return this.video && this.video.state.id === VideoState.TRANSCODING_FAILED | ||
19 | } | ||
20 | |||
17 | isVideoToImport () { | 21 | isVideoToImport () { |
18 | return this.video && this.video.state.id === VideoState.TO_IMPORT | 22 | return this.video && this.video.state.id === VideoState.TO_IMPORT |
19 | } | 23 | } |