aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-11-16 10:05:25 +0100
committerChocobozzz <me@florianbigard.com>2018-11-16 10:05:25 +0100
commit7373507fa830b0f18cb4cd95dfd923b1600e501d (patch)
tree112fc5b4bc0cabd599a39452962cefb9733f97ec /client/src/app/videos/+video-edit/video-add-components/video-upload.component.html
parentfe05c3acbd48c72ac7e503bebde91830121a0bf1 (diff)
downloadPeerTube-7373507fa830b0f18cb4cd95dfd923b1600e501d.tar.gz
PeerTube-7373507fa830b0f18cb4cd95dfd923b1600e501d.tar.zst
PeerTube-7373507fa830b0f18cb4cd95dfd923b1600e501d.zip
Improve video upload error handling
Diffstat (limited to 'client/src/app/videos/+video-edit/video-add-components/video-upload.component.html')
-rw-r--r--client/src/app/videos/+video-edit/video-add-components/video-upload.component.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html
index fa57c8cb5..a09f54dfc 100644
--- a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html
+++ b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html
@@ -29,7 +29,7 @@
29 </div> 29 </div>
30</div> 30</div>
31 31
32<div *ngIf="isUploadingVideo" class="upload-progress-cancel"> 32<div *ngIf="isUploadingVideo && !error" class="upload-progress-cancel">
33 <p-progressBar 33 <p-progressBar
34 [value]="videoUploadPercents" 34 [value]="videoUploadPercents"
35 [ngClass]="{ processing: videoUploadPercents === 100 && videoUploaded === false }" 35 [ngClass]="{ processing: videoUploadPercents === 100 && videoUploaded === false }"
@@ -37,6 +37,11 @@
37 <input *ngIf="videoUploaded === false" type="button" value="Cancel" (click)="cancelUpload()" /> 37 <input *ngIf="videoUploaded === false" type="button" value="Cancel" (click)="cancelUpload()" />
38</div> 38</div>
39 39
40<div *ngIf="error" class="alert alert-danger">
41 <div i18n>Sorry, but something went wrong</div>
42 {{ error }}
43</div>
44
40<!-- Hidden because we want to load the component --> 45<!-- Hidden because we want to load the component -->
41<form [hidden]="!isUploadingVideo" novalidate [formGroup]="form"> 46<form [hidden]="!isUploadingVideo" novalidate [formGroup]="form">
42 <my-video-edit 47 <my-video-edit
@@ -55,4 +60,4 @@
55 <input [disabled]="isPublishingButtonDisabled()" type="button" i18n-value value="Publish" /> 60 <input [disabled]="isPublishingButtonDisabled()" type="button" i18n-value value="Publish" />
56 </div> 61 </div>
57 </div> 62 </div>
58</form> \ No newline at end of file 63</form>