diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-08 12:53:09 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-08 12:53:09 +0100 |
commit | ce5496d6a31b9617aba67970f5dc135e73335234 (patch) | |
tree | b5d2578f4618b71632e92838c3ceae36aa102798 /client/src/app/videos/+video-edit/video-update.component.ts | |
parent | 108af66140713c4beec681a71d360ab788226528 (diff) | |
download | PeerTube-ce5496d6a31b9617aba67970f5dc135e73335234.tar.gz PeerTube-ce5496d6a31b9617aba67970f5dc135e73335234.tar.zst PeerTube-ce5496d6a31b9617aba67970f5dc135e73335234.zip |
Support video quota on client
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 | ) |