aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-09 11:52:41 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-11-09 15:00:21 +0100
commit221ee1adc916684d4881d2a9c4c01954dcde986e (patch)
treef456a3f3e1fcc2d8dbd3cc6f0d72a4cb2cbbadc2 /client/src
parent4e29f4fe23b413cc8c55ac0d8373f36bcd60b47a (diff)
downloadPeerTube-221ee1adc916684d4881d2a9c4c01954dcde986e.tar.gz
PeerTube-221ee1adc916684d4881d2a9c4c01954dcde986e.tar.zst
PeerTube-221ee1adc916684d4881d2a9c4c01954dcde986e.zip
Add transcoding fail message in client
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/+videos/+video-watch/shared/information/video-alert.component.html4
-rw-r--r--client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts4
-rw-r--r--client/src/app/shared/shared-video-miniature/video-miniature.component.ts4
3 files changed, 12 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 }
diff --git a/client/src/app/shared/shared-video-miniature/video-miniature.component.ts b/client/src/app/shared/shared-video-miniature/video-miniature.component.ts
index 37ff224ab..f387c38c2 100644
--- a/client/src/app/shared/shared-video-miniature/video-miniature.component.ts
+++ b/client/src/app/shared/shared-video-miniature/video-miniature.component.ts
@@ -175,6 +175,10 @@ export class VideoMiniatureComponent implements OnInit {
175 return $localize`Publication scheduled on ` + updateAt 175 return $localize`Publication scheduled on ` + updateAt
176 } 176 }
177 177
178 if (video.state.id === VideoState.TRANSCODING_FAILED) {
179 return $localize`Transcoding failed`
180 }
181
178 if (video.state.id === VideoState.TO_TRANSCODE && video.waitTranscoding === true) { 182 if (video.state.id === VideoState.TO_TRANSCODE && video.waitTranscoding === true) {
179 return $localize`Waiting transcoding` 183 return $localize`Waiting transcoding`
180 } 184 }