UX: Add the TOS disclaimer to the invite signup (#17717)
This commit is contained in:
parent
867929d843
commit
c97bfa1c44
|
@ -222,6 +222,15 @@ export default Controller.extend(
|
|||
@discourseComputed
|
||||
ssoPath: () => getUrl("/session/sso"),
|
||||
|
||||
@discourseComputed
|
||||
disclaimerHtml() {
|
||||
return I18n.t("create_account.disclaimer", {
|
||||
tos_link: this.siteSettings.tos_url || getUrl("/tos"),
|
||||
privacy_link:
|
||||
this.siteSettings.privacy_policy_url || getUrl("/privacy"),
|
||||
});
|
||||
},
|
||||
|
||||
@discourseComputed("authOptions.associate_url", "authOptions.auth_provider")
|
||||
associateHtml(url, provider) {
|
||||
if (!url) {
|
||||
|
|
|
@ -121,6 +121,10 @@
|
|||
|
||||
<DButton @class="btn-primary" @action={{action "submit"}} @type="submit" @disabled={{this.submitDisabled}} @label="invites.accept_invite" />
|
||||
|
||||
<div class="disclaimer">
|
||||
{{html-safe this.disclaimerHtml}}
|
||||
</div>
|
||||
|
||||
{{#if this.errorMessage}}
|
||||
<br><br>
|
||||
<div class="alert alert-error">{{this.errorMessage}}</div>
|
||||
|
|
|
@ -322,6 +322,9 @@
|
|||
.col-image {
|
||||
display: none;
|
||||
}
|
||||
.disclaimer {
|
||||
margin: 1em 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
#login-buttons {
|
||||
|
|
Loading…
Reference in New Issue