From 10819fda6d00f02042b19b9036b44999f2742181 Mon Sep 17 00:00:00 2001 From: nymkappa <1612910616@pm.me> Date: Sat, 9 Mar 2024 17:33:38 +0900 Subject: [PATCH] [ui] disable sign in button in global footer --- frontend/src/app/services/state.service.ts | 1 + .../components/global-footer/global-footer.component.html | 4 ++-- .../components/global-footer/global-footer.component.ts | 2 -- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/services/state.service.ts b/frontend/src/app/services/state.service.ts index e54d89403..8957af736 100644 --- a/frontend/src/app/services/state.service.ts +++ b/frontend/src/app/services/state.service.ts @@ -89,6 +89,7 @@ const defaultEnv: Env = { }) export class StateService { isBrowser: boolean = isPlatformBrowser(this.platformId); + isMempoolSpaceBuild = window['isMempoolSpaceBuild'] ?? false; network = ''; lightning = false; blockVSize: number; diff --git a/frontend/src/app/shared/components/global-footer/global-footer.component.html b/frontend/src/app/shared/components/global-footer/global-footer.component.html index 271279589..b92e8a339 100644 --- a/frontend/src/app/shared/components/global-footer/global-footer.component.html +++ b/frontend/src/app/shared/components/global-footer/global-footer.component.html @@ -21,12 +21,12 @@
- - diff --git a/frontend/src/app/shared/components/global-footer/global-footer.component.ts b/frontend/src/app/shared/components/global-footer/global-footer.component.ts index 2e3f98e2d..e76a5de0d 100644 --- a/frontend/src/app/shared/components/global-footer/global-footer.component.ts +++ b/frontend/src/app/shared/components/global-footer/global-footer.component.ts @@ -30,7 +30,6 @@ export class GlobalFooterComponent implements OnInit { loggedIn = false; urlSubscription: Subscription; isServicesPage = false; - servicesEnabled = false; constructor( public stateService: StateService, @@ -45,7 +44,6 @@ export class GlobalFooterComponent implements OnInit { ) {} ngOnInit(): void { - this.servicesEnabled = this.officialMempoolSpace && this.stateService.env.ACCELERATOR === true && this.stateService.network === ''; this.isServicesPage = this.router.url.includes('/services/'); this.env = this.stateService.env;