From: kontrollanten <6680299+kontrollanten@users.noreply.github.com> Date: Thu, 3 Dec 2020 06:59:37 +0000 (+0100) Subject: register: hide channel step if upload quota is 0 X-Git-Tag: v3.0.0-rc.1~172 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=09c55770bcc96785fb1f199b4cd8ce66b545486a;p=github%2FChocobozzz%2FPeerTube.git register: hide channel step if upload quota is 0 fix #782 --- diff --git a/client/src/app/+signup/+register/custom-stepper.component.html b/client/src/app/+signup/+register/custom-stepper.component.html index 57374d41e..4cfe54152 100644 --- a/client/src/app/+signup/+register/custom-stepper.component.html +++ b/client/src/app/+signup/+register/custom-stepper.component.html @@ -1,5 +1,5 @@
-
+
+
+ Video uploads are disabled on this instance, hence your account won't be able to upload videos. +
+
diff --git a/client/src/app/+signup/+register/register-step-user.component.ts b/client/src/app/+signup/+register/register-step-user.component.ts index 65536568b..9193540b4 100644 --- a/client/src/app/+signup/+register/register-step-user.component.ts +++ b/client/src/app/+signup/+register/register-step-user.component.ts @@ -19,6 +19,7 @@ import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' }) export class RegisterStepUserComponent extends FormReactive implements OnInit { @Input() hasCodeOfConduct = false + @Input() videoUploadDisabled = false @Output() formBuilt = new EventEmitter() @Output() termsClick = new EventEmitter() diff --git a/client/src/app/+signup/+register/register.component.html b/client/src/app/+signup/+register/register.component.html index fa9838ba6..7e3704124 100644 --- a/client/src/app/+signup/+register/register.component.html +++ b/client/src/app/+signup/+register/register.component.html @@ -13,14 +13,16 @@ - + - +