]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+signup/+register/register.component.ts
Fix peertube container in markdown preview
[github/Chocobozzz/PeerTube.git] / client / src / app / +signup / +register / register.component.ts
index b1f5d8e93f2d16c0b3bad474039140b6ecc16f68..241ca04c6a512549adb0923c203a510f427870a7 100644 (file)
@@ -38,7 +38,8 @@ export class RegisterComponent implements OnInit {
     moderation: false
   }
 
-  defaultNextStepButtonLabel = $localize`Next`
+  defaultPreviousStepButtonLabel = $localize`:Button on the registration form to go to the previous step:Back`
+  defaultNextStepButtonLabel = $localize`:Button on the registration form to go to the previous step:Next`
   stepUserButtonLabel = this.defaultNextStepButtonLabel
 
   private serverConfig: ServerConfig
@@ -55,12 +56,16 @@ export class RegisterComponent implements OnInit {
     return this.serverConfig.signup.requiresEmailVerification
   }
 
+  get minimumAge () {
+    return this.serverConfig.signup.minimumAge
+  }
+
   ngOnInit (): void {
     this.serverConfig = this.route.snapshot.data.serverConfig
 
     this.videoUploadDisabled = this.serverConfig.user.videoQuota === 0
     this.stepUserButtonLabel = this.videoUploadDisabled
-      ? $localize`Signup`
+      ? $localize`:Button on the registration form to finalize the account and channel creation:Signup`
       : this.defaultNextStepButtonLabel
 
     this.hooks.runAction('action:signup.register.init', 'signup')