this.video.patch(this.form.value)
- this.loadingBar.start()
+ this.loadingBar.useRef().start()
this.isUpdatingVideo = true
// Update the video
() => {
this.updateDone = true
this.isUpdatingVideo = false
- this.loadingBar.complete()
+ this.loadingBar.useRef().complete()
this.notifier.success(this.i18n('Video updated.'))
this.router.navigate([ '/videos/watch', this.video.uuid ])
},
err => {
- this.loadingBar.complete()
+ this.loadingBar.useRef().complete()
this.isUpdatingVideo = false
this.notifier.error(err.message)
console.error(err)