From 315cc0cc1871ab2a6d6c1bb61cf7b9f10511c3a9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 14 Sep 2017 23:03:43 +0200 Subject: Add info when server is processing a video at upload --- client/src/app/videos/video-edit/video-add.component.html | 7 ++++++- client/src/app/videos/video-edit/video-add.component.ts | 8 ++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'client/src/app/videos/video-edit') 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 @@
- + + + + Server is processing the video + +
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 { this.notificationsService.success('Success', 'Video uploaded.') // Display all the videos once it's finished - this.router.navigate([ '/videos/list ']) + this.router.navigate([ '/videos/list' ]) } }, - err => this.error = err.message + err => { + // Reset progress + this.progressPercent = 0 + this.error = err.message + } ) } } -- cgit v1.2.3