]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/signup/signup.component.ts
Display report reason in multiple lines (#957)
[github/Chocobozzz/PeerTube.git] / client / src / app / signup / signup.component.ts
index 55ebb573e10fa56a6308acbda07fef7fc31d0a62..ed68487ae10ae9aa524eece634e1fb2b6ff1d687 100644 (file)
@@ -34,11 +34,16 @@ export class SignupComponent extends FormReactive implements OnInit {
     return this.serverService.getConfig().user.videoQuota
   }
 
+  get instanceHost () {
+    return window.location.host
+  }
+
   ngOnInit () {
     this.buildForm({
       username: this.userValidatorsService.USER_USERNAME,
       password: this.userValidatorsService.USER_PASSWORD,
-      email: this.userValidatorsService.USER_EMAIL
+      email: this.userValidatorsService.USER_EMAIL,
+      terms: this.userValidatorsService.USER_TERMS
     })
 
     this.serverService.configLoaded
@@ -75,7 +80,6 @@ export class SignupComponent extends FormReactive implements OnInit {
     return this.i18n('~ {{minutes}} {minutes, plural, =1 {minute} other {minutes}}', { minutes })
   }
 
-
   private buildQuotaHelpIndication () {
     if (this.initialUserVideoQuota === -1) return