aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-edit/video-add.component.html
diff options
context:
space:
mode:
authorDimitri Gilbert <dimitri.gilbert@gmail.com>2018-01-23 15:01:38 +0100
committerChocobozzz <me@florianbigard.com>2018-01-23 15:01:38 +0100
commit8c4890cbfe3b5c742ed8756d7a0fd2f533534c6a (patch)
tree0c45c4c7aa183d12636399e9d0827ffe68c9afbb /client/src/app/videos/+video-edit/video-add.component.html
parentf8b8c36b2a92bfee435747ab5a0283924be76281 (diff)
downloadPeerTube-8c4890cbfe3b5c742ed8756d7a0fd2f533534c6a.tar.gz
PeerTube-8c4890cbfe3b5c742ed8756d7a0fd2f533534c6a.tar.zst
PeerTube-8c4890cbfe3b5c742ed8756d7a0fd2f533534c6a.zip
Issue #196 : Allow to cancel an upload (#221)
* issue #196 * fixed missattribution of var * fix styling issue * renamed videoUpload to videoUploadObservable * added created path to gitignore * changed uploadCancel method name to cancelUpload
Diffstat (limited to 'client/src/app/videos/+video-edit/video-add.component.html')
-rw-r--r--client/src/app/videos/+video-edit/video-add.component.html11
1 files changed, 8 insertions, 3 deletions
diff --git a/client/src/app/videos/+video-edit/video-add.component.html b/client/src/app/videos/+video-edit/video-add.component.html
index 34291c6c6..4e9b78cf2 100644
--- a/client/src/app/videos/+video-edit/video-add.component.html
+++ b/client/src/app/videos/+video-edit/video-add.component.html
@@ -32,10 +32,15 @@
32 </div> 32 </div>
33 </div> 33 </div>
34 34
35 <p-progressBar 35 <div
36 *ngIf="isUploadingVideo" [value]="videoUploadPercents" 36 *ngIf="isUploadingVideo"
37 >
38 <p-progressBar
39 [value]="videoUploadPercents"
37 [ngClass]="{ processing: videoUploadPercents === 100 && videoUploaded === false }" 40 [ngClass]="{ processing: videoUploadPercents === 100 && videoUploaded === false }"
38 ></p-progressBar> 41 ></p-progressBar>
42 <input type="button" value="Cancel" (click)="cancelUpload()" />
43 </div>
39 44
40 <!-- Hidden because we need to load the component --> 45 <!-- Hidden because we need to load the component -->
41 <form [hidden]="!isUploadingVideo" novalidate [formGroup]="form"> 46 <form [hidden]="!isUploadingVideo" novalidate [formGroup]="form">