From 208756bdd20fb663452ec9036a5d0e8985641014 Mon Sep 17 00:00:00 2001 From: hunicus <93150691+hunicus@users.noreply.github.com> Date: Thu, 11 May 2023 19:31:22 -0400 Subject: [PATCH] Show explorer links conditionally --- .../global-footer/global-footer.component.html | 9 +++++---- .../global-footer/global-footer.component.ts | 15 +++++++++++++-- 2 files changed, 18 insertions(+), 6 deletions(-) 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 da9373063..a5a67ad28 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 @@ -46,10 +46,11 @@
More Networks
- - - - + + + + +Legal
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 361692cdb..9d904d067 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 @@ -1,5 +1,6 @@ import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'; -import { Observable } from 'rxjs'; +import { Observable, merge, of, Subject } from 'rxjs'; +import { tap, takeUntil } from 'rxjs/operators'; import { Env, StateService } from '../../../services/state.service'; import { IBackendInfo } from '../../../interfaces/websocket.interface'; @@ -10,12 +11,14 @@ import { IBackendInfo } from '../../../interfaces/websocket.interface'; changeDetection: ChangeDetectionStrategy.OnPush, }) export class GlobalFooterComponent implements OnInit { + private destroy$: Subject