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 | 5 |
1 files changed, 2 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 941ef2478..7f41b56d8 100644 --- a/client/src/app/videos/+video-edit/video-update.component.ts +++ b/client/src/app/videos/+video-edit/video-update.component.ts | |||
@@ -21,7 +21,6 @@ import { VideoService } from '../../shared/video/video.service' | |||
21 | export class VideoUpdateComponent extends FormReactive implements OnInit { | 21 | export class VideoUpdateComponent extends FormReactive implements OnInit { |
22 | video: VideoEdit | 22 | video: VideoEdit |
23 | 23 | ||
24 | error: string = null | ||
25 | form: FormGroup | 24 | form: FormGroup |
26 | formErrors: { [ id: string ]: string } = {} | 25 | formErrors: { [ id: string ]: string } = {} |
27 | validationMessages: ValidatorMessage = {} | 26 | validationMessages: ValidatorMessage = {} |
@@ -82,7 +81,7 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { | |||
82 | 81 | ||
83 | err => { | 82 | err => { |
84 | console.error(err) | 83 | console.error(err) |
85 | this.error = 'Cannot fetch video.' | 84 | this.notificationsService.error('Error', err.message) |
86 | } | 85 | } |
87 | ) | 86 | ) |
88 | } | 87 | } |
@@ -108,7 +107,7 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { | |||
108 | }, | 107 | }, |
109 | 108 | ||
110 | err => { | 109 | err => { |
111 | this.error = 'Cannot update the video.' | 110 | this.notificationsService.error('Error', err.message) |
112 | console.error(err) | 111 | console.error(err) |
113 | } | 112 | } |
114 | ) | 113 | ) |