From f57d54249c24c20f1b177ff88c94f5fe23dc5ce4 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 25 Jul 2018 13:59:55 -0400 Subject: [PATCH] dont show terms on self hosted --- src/app/accounts/register.component.html | 2 +- src/app/accounts/register.component.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/accounts/register.component.html b/src/app/accounts/register.component.html index b5cc92b0f7..873cb9506c 100644 --- a/src/app/accounts/register.component.html +++ b/src/app/accounts/register.component.html @@ -54,7 +54,7 @@ {{'cancel' | i18n}} - + {{'submitAgreePolicies' | i18n}} {{'termsOfService' | i18n}}, {{'privacyPolicy' | i18n}} diff --git a/src/app/accounts/register.component.ts b/src/app/accounts/register.component.ts index bb8d5c4e16..56f4af1806 100644 --- a/src/app/accounts/register.component.ts +++ b/src/app/accounts/register.component.ts @@ -11,6 +11,7 @@ import { ApiService } from 'jslib/abstractions/api.service'; import { AuthService } from 'jslib/abstractions/auth.service'; import { CryptoService } from 'jslib/abstractions/crypto.service'; import { I18nService } from 'jslib/abstractions/i18n.service'; +import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service'; import { StateService } from 'jslib/abstractions/state.service'; import { RegisterComponent as BaseRegisterComponent } from 'jslib/angular/components/register.component'; @@ -21,13 +22,15 @@ import { RegisterComponent as BaseRegisterComponent } from 'jslib/angular/compon }) export class RegisterComponent extends BaseRegisterComponent { showCreateOrgMessage = false; + showTerms = true; constructor(authService: AuthService, router: Router, analytics: Angulartics2, toasterService: ToasterService, i18nService: I18nService, cryptoService: CryptoService, apiService: ApiService, private route: ActivatedRoute, - stateService: StateService) { + stateService: StateService, platformUtilsService: PlatformUtilsService) { super(authService, router, analytics, toasterService, i18nService, cryptoService, apiService, stateService); + this.showTerms = !platformUtilsService.isSelfHost(); } ngOnInit() {