aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-23 11:09:31 +0100
committerChocobozzz <me@florianbigard.com>2021-12-23 11:13:06 +0100
commitdbd9fb44ddd880622265097bd7baf4dd71ea0861 (patch)
treeb531f861026a52bcacfdee076431c1c34d9ba78d /client/src/app
parent482b26231b4e39234f107b8400ef606c5f003c55 (diff)
downloadPeerTube-dbd9fb44ddd880622265097bd7baf4dd71ea0861.tar.gz
PeerTube-dbd9fb44ddd880622265097bd7baf4dd71ea0861.tar.zst
PeerTube-dbd9fb44ddd880622265097bd7baf4dd71ea0861.zip
Don't stuck state when move transcoding job failed
Diffstat (limited to 'client/src/app')
-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 6e5d0bcad..0c4d46714 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
@@ -2,6 +2,10 @@
2 Transcoding failed, this video may not work properly. 2 Transcoding failed, this video may not work properly.
3</div> 3</div>
4 4
5<div i18n class="alert alert-warning" *ngIf="isVideoMoveToObjectStorageFailed()">
6 Move to external storage failed, this video may not work properly.
7</div>
8
5<div i18n class="alert alert-warning" *ngIf="isVideoToImport()"> 9<div i18n class="alert alert-warning" *ngIf="isVideoToImport()">
6 The video is being imported, it will be available when the import is finished. 10 The video is being imported, it will be available when the import is finished.
7</div> 11</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 addea53c0..a3d3fa6fb 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
@@ -18,6 +18,10 @@ export class VideoAlertComponent {
18 return this.video && this.video.state.id === VideoState.TRANSCODING_FAILED 18 return this.video && this.video.state.id === VideoState.TRANSCODING_FAILED
19 } 19 }
20 20
21 isVideoMoveToObjectStorageFailed () {
22 return this.video && this.video.state.id === VideoState.TO_MOVE_TO_EXTERNAL_STORAGE_FAILED
23 }
24
21 isVideoToImport () { 25 isVideoToImport () {
22 return this.video && this.video.state.id === VideoState.TO_IMPORT 26 return this.video && this.video.state.id === VideoState.TO_IMPORT
23 } 27 }
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 f387c38c2..847e401ed 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
@@ -179,6 +179,10 @@ export class VideoMiniatureComponent implements OnInit {
179 return $localize`Transcoding failed` 179 return $localize`Transcoding failed`
180 } 180 }
181 181
182 if (video.state.id === VideoState.TO_MOVE_TO_EXTERNAL_STORAGE_FAILED) {
183 return $localize`Move to external storage failed`
184 }
185
182 if (video.state.id === VideoState.TO_TRANSCODE && video.waitTranscoding === true) { 186 if (video.state.id === VideoState.TO_TRANSCODE && video.waitTranscoding === true) {
183 return $localize`Waiting transcoding` 187 return $localize`Waiting transcoding`
184 } 188 }