Add information at video upload if user video quota is reached
authorChocobozzz <florian.bigard@gmail.com>
Wed, 6 Sep 2017 15:45:38 +0000 (17:45 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Wed, 6 Sep 2017 15:45:38 +0000 (17:45 +0200)
client/src/app/videos/video-edit/video-add.component.ts

index 5d6c0e0c7038a3329e95e7aee05aa79e49c1074e..768b6fbcdcc60963eb34c288be85a9988c7aa68c 100644 (file)
@@ -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)