this.descriptionLoading = true
this.videoService.loadCompleteDescription(this.video.descriptionPath)
- .subscribe(
- description => {
+ .subscribe({
+ next: description => {
this.completeDescriptionShown = true
this.descriptionLoading = false
this.updateVideoDescription(this.completeVideoDescription)
},
- error => {
+ error: err => {
this.descriptionLoading = false
- this.notifier.error(error.message)
+ this.notifier.error(err.message)
}
- )
+ })
}
onTimestampClicked (timestamp: number) {