diff --git a/libs/auth/src/angular/registration/registration-env-selector/registration-env-selector.component.html b/libs/auth/src/angular/registration/registration-env-selector/registration-env-selector.component.html index 9785bf05ab..5135fb6192 100644 --- a/libs/auth/src/angular/registration/registration-env-selector/registration-env-selector.component.html +++ b/libs/auth/src/angular/registration/registration-env-selector/registration-env-selector.component.html @@ -1,4 +1,4 @@ -
+ {{ "creatingAccountOn" | i18n }} diff --git a/libs/auth/src/angular/registration/registration-env-selector/registration-env-selector.component.ts b/libs/auth/src/angular/registration/registration-env-selector/registration-env-selector.component.ts index 268fb1cc99..d5e588cdd9 100644 --- a/libs/auth/src/angular/registration/registration-env-selector/registration-env-selector.component.ts +++ b/libs/auth/src/angular/registration/registration-env-selector/registration-env-selector.component.ts @@ -44,6 +44,7 @@ export class RegistrationEnvSelectorComponent implements OnInit, OnDestroy { private selectedRegionFromEnv: RegionConfig | Region.SelfHosted; + hideEnvSelector = false; isDesktopOrBrowserExtension = false; private destroy$ = new Subject(); @@ -59,9 +60,15 @@ export class RegistrationEnvSelectorComponent implements OnInit, OnDestroy { const clientType = platformUtilsService.getClientType(); this.isDesktopOrBrowserExtension = clientType === ClientType.Desktop || clientType === ClientType.Browser; + + this.hideEnvSelector = clientType === ClientType.Web && this.platformUtilsService.isSelfHost(); } async ngOnInit() { + if (this.hideEnvSelector) { + return; + } + await this.initSelectedRegionAndListenForEnvChanges(); this.listenForSelectedRegionChanges(); }