diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-09-14 23:03:43 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-09-14 23:03:43 +0200 |
commit | 315cc0cc1871ab2a6d6c1bb61cf7b9f10511c3a9 (patch) | |
tree | 68cb1b103cc073e0c2ad3de651dfe26c6fe03477 /client/src/app/videos/video-edit | |
parent | 3523b64a03d677c2f8df61c121ff4fcb1d9db7f9 (diff) | |
download | PeerTube-315cc0cc1871ab2a6d6c1bb61cf7b9f10511c3a9.tar.gz PeerTube-315cc0cc1871ab2a6d6c1bb61cf7b9f10511c3a9.tar.zst PeerTube-315cc0cc1871ab2a6d6c1bb61cf7b9f10511c3a9.zip |
Add info when server is processing a video at upload
Diffstat (limited to 'client/src/app/videos/video-edit')
-rw-r--r-- | client/src/app/videos/video-edit/video-add.component.html | 7 | ||||
-rw-r--r-- | client/src/app/videos/video-edit/video-add.component.ts | 8 |
2 files changed, 12 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 cf8fc2b80..698152ff9 100644 --- a/client/src/app/videos/video-edit/video-add.component.html +++ b/client/src/app/videos/video-edit/video-add.component.html | |||
@@ -102,7 +102,12 @@ | |||
102 | </div> | 102 | </div> |
103 | 103 | ||
104 | <div class="progress"> | 104 | <div class="progress"> |
105 | <progressbar [value]="progressPercent" max="100"></progressbar> | 105 | <progressbar [value]="progressPercent" max="100"> |
106 | <ng-template [ngIf]="progressPercent === 100"> | ||
107 | <span class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></span> | ||
108 | Server is processing the video | ||
109 | </ng-template> | ||
110 | </progressbar> | ||
106 | </div> | 111 | </div> |
107 | 112 | ||
108 | <div class="form-group"> | 113 | <div class="form-group"> |
diff --git a/client/src/app/videos/video-edit/video-add.component.ts b/client/src/app/videos/video-edit/video-add.component.ts index 537ef9bc3..21311b184 100644 --- a/client/src/app/videos/video-edit/video-add.component.ts +++ b/client/src/app/videos/video-edit/video-add.component.ts | |||
@@ -151,11 +151,15 @@ export class VideoAddComponent extends FormReactive implements OnInit { | |||
151 | this.notificationsService.success('Success', 'Video uploaded.') | 151 | this.notificationsService.success('Success', 'Video uploaded.') |
152 | 152 | ||
153 | // Display all the videos once it's finished | 153 | // Display all the videos once it's finished |
154 | this.router.navigate([ '/videos/list ']) | 154 | this.router.navigate([ '/videos/list' ]) |
155 | } | 155 | } |
156 | }, | 156 | }, |
157 | 157 | ||
158 | err => this.error = err.message | 158 | err => { |
159 | // Reset progress | ||
160 | this.progressPercent = 0 | ||
161 | this.error = err.message | ||
162 | } | ||
159 | ) | 163 | ) |
160 | } | 164 | } |
161 | } | 165 | } |