]> cat aescling's git repositories - mastodon.git/commitdiff
Fix sign up button not saying sign up when invite is used (#10623)
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 23 Apr 2019 02:39:21 +0000 (04:39 +0200)
committerGitHub <noreply@github.com>
Tue, 23 Apr 2019 02:39:21 +0000 (04:39 +0200)
Fix #10616

app/views/auth/registrations/new.html.haml

index bd6e3a13f754c2efa4063699234baf42a9620e8d..b4a7cced55c69d6fab5164908d0bbe6ae050bac8 100644 (file)
@@ -36,6 +36,6 @@
     = f.input :agreement, as: :boolean, wrapper: :with_label, label: t('auth.checkbox_agreement_html', rules_path: about_more_path, terms_path: terms_path)
 
   .actions
-    = f.button :button, sign_up_message, type: :submit
+    = f.button :button, @invite.present? ? t('auth.register') : sign_up_message, type: :submit
 
 .form-footer= render 'auth/shared/links'