diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-23 11:09:31 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-23 11:13:06 +0100 |
commit | dbd9fb44ddd880622265097bd7baf4dd71ea0861 (patch) | |
tree | b531f861026a52bcacfdee076431c1c34d9ba78d /client/src/app/+videos | |
parent | 482b26231b4e39234f107b8400ef606c5f003c55 (diff) | |
download | PeerTube-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/+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 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 | } |