administrator: ''
}
+ videoUploadDisabled: boolean
+
formStepUser: FormGroup
formStepChannel: FormGroup
ngOnInit (): void {
this.serverConfig = this.route.snapshot.data.serverConfig
+ this.videoUploadDisabled = this.serverConfig.user.videoQuota === 0
+
this.instanceService.getAbout()
.subscribe(
async about => {
this.error = null
const body: UserRegister = await this.hooks.wrapObject(
- Object.assign(this.formStepUser.value, { channel: this.formStepChannel.value }),
+ Object.assign(this.formStepUser.value, { channel: this.videoUploadDisabled ? undefined : this.formStepChannel.value }),
'signup',
'filter:api.signup.registration.create.params'
)