From: Chocobozzz Date: Wed, 6 Sep 2017 15:45:38 +0000 (+0200) Subject: Add information at video upload if user video quota is reached X-Git-Tag: v0.0.1-alpha~339 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a8b5de6c670eb19ffbe40726bb60ef1d1dbc10dd;p=oweals%2Fpeertube.git Add information at video upload if user video quota is reached --- diff --git a/client/src/app/videos/video-edit/video-add.component.ts b/client/src/app/videos/video-edit/video-add.component.ts index 5d6c0e0c7..768b6fbcd 100644 --- a/client/src/app/videos/video-edit/video-add.component.ts +++ b/client/src/app/videos/video-edit/video-add.component.ts @@ -178,6 +178,8 @@ export class VideoAddComponent extends FormReactive implements OnInit { this.error += ' access token refreshed. Please retry your request.' } ) + } else if (status === 403) { + this.error = 'Your video quota is reached, you can\'t upload this video.' } else { this.error = 'Unknow error' console.error(this.error)