diff options
Diffstat (limited to 'client/src/app')
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 | } |