aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/angular
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-03-16 21:22:21 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-03-16 21:22:21 +0100
commit86e054b20fabb5934e09d0bcb096840dd28d69fd (patch)
tree94a0cca65a0e46f392eac70a28e03ecde22f7310 /client/angular
parentdd00473a6d67785fbcb8fd5ea158c61b13252ea8 (diff)
downloadPeerTube-86e054b20fabb5934e09d0bcb096840dd28d69fd.tar.gz
PeerTube-86e054b20fabb5934e09d0bcb096840dd28d69fd.tar.zst
PeerTube-86e054b20fabb5934e09d0bcb096840dd28d69fd.zip
Improve progress bar
Diffstat (limited to 'client/angular')
-rw-r--r--client/angular/videos/components/add/videos-add.component.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/angular/videos/components/add/videos-add.component.ts b/client/angular/videos/components/add/videos-add.component.ts
index 3a7b02133..9926aed63 100644
--- a/client/angular/videos/components/add/videos-add.component.ts
+++ b/client/angular/videos/components/add/videos-add.component.ts
@@ -36,10 +36,13 @@ export class VideosAddComponent implements OnInit {
36 36
37 progressall: (e, data) => { 37 progressall: (e, data) => {
38 this.progressBar.value = data.loaded; 38 this.progressBar.value = data.loaded;
39 this.progressBar.max = data.total; 39 // The server is a little bit slow to answer (has to seed the video)
40 // So we add more time to the progress bar (+10%)
41 this.progressBar.max = data.total + (0.1 * data.total);
40 }, 42 },
41 43
42 done: (e, data) => { 44 done: (e, data) => {
45 this.progressBar.value = this.progressBar.max;
43 console.log('Video uploaded.'); 46 console.log('Video uploaded.');
44 47
45 // Print all the videos once it's finished 48 // Print all the videos once it's finished