diff options
Diffstat (limited to 'client/src/app/+videos/+video-edit/video-update.component.ts')
-rw-r--r-- | client/src/app/+videos/+video-edit/video-update.component.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/+videos/+video-edit/video-update.component.ts b/client/src/app/+videos/+video-edit/video-update.component.ts index 7bd6eb553..581199d65 100644 --- a/client/src/app/+videos/+video-edit/video-update.component.ts +++ b/client/src/app/+videos/+video-edit/video-update.component.ts | |||
@@ -101,7 +101,7 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { | |||
101 | 101 | ||
102 | this.video.patch(this.form.value) | 102 | this.video.patch(this.form.value) |
103 | 103 | ||
104 | this.loadingBar.start() | 104 | this.loadingBar.useRef().start() |
105 | this.isUpdatingVideo = true | 105 | this.isUpdatingVideo = true |
106 | 106 | ||
107 | // Update the video | 107 | // Update the video |
@@ -114,13 +114,13 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { | |||
114 | () => { | 114 | () => { |
115 | this.updateDone = true | 115 | this.updateDone = true |
116 | this.isUpdatingVideo = false | 116 | this.isUpdatingVideo = false |
117 | this.loadingBar.complete() | 117 | this.loadingBar.useRef().complete() |
118 | this.notifier.success(this.i18n('Video updated.')) | 118 | this.notifier.success(this.i18n('Video updated.')) |
119 | this.router.navigate([ '/videos/watch', this.video.uuid ]) | 119 | this.router.navigate([ '/videos/watch', this.video.uuid ]) |
120 | }, | 120 | }, |
121 | 121 | ||
122 | err => { | 122 | err => { |
123 | this.loadingBar.complete() | 123 | this.loadingBar.useRef().complete() |
124 | this.isUpdatingVideo = false | 124 | this.isUpdatingVideo = false |
125 | this.notifier.error(err.message) | 125 | this.notifier.error(err.message) |
126 | console.error(err) | 126 | console.error(err) |