aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/videos/+video-edit/video-add.component.ts4
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts1
2 files changed, 3 insertions, 2 deletions
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 a86d9d3c2..d0d17fa86 100644
--- a/client/src/app/videos/+video-edit/video-add.component.ts
+++ b/client/src/app/videos/+video-edit/video-add.component.ts
@@ -95,8 +95,10 @@ export class VideoAddComponent extends FormReactive implements OnInit {
95 95
96 uploadFirstStep () { 96 uploadFirstStep () {
97 const videofile = this.videofileInput.nativeElement.files[0] 97 const videofile = this.videofileInput.nativeElement.files[0]
98 if (!videofile) return
99
98 const videoQuota = this.authService.getUser().videoQuota 100 const videoQuota = this.authService.getUser().videoQuota
99 if ((this.userVideoQuotaUsed + videofile.size) > videoQuota) { 101 if (videoQuota !== -1 && (this.userVideoQuotaUsed + videofile.size) > videoQuota) {
100 const bytePipes = new BytesPipe() 102 const bytePipes = new BytesPipe()
101 103
102 const msg = 'Your video quota is exceeded with this video ' + 104 const msg = 'Your video quota is exceeded with this video ' +
diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts
index a27cacba3..6f5fe0b97 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -326,7 +326,6 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
326 peertube: { 326 peertube: {
327 videoFiles: this.video.files, 327 videoFiles: this.video.files,
328 playerElement: this.playerElement, 328 playerElement: this.playerElement,
329 autoplay: this.isAutoplay(),
330 peerTubeLink: false 329 peerTubeLink: false
331 } 330 }
332 } 331 }