Merge pull request #4216 from mempool/mononaut/fix-menu-blockchain-offset

Fix bad blockchain offset after services -> dash
This commit is contained in:
nymkappa 2023-08-28 10:56:18 +02:00 committed by GitHub
commit 03e9592c79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
import { Component, OnInit, Input, Output, EventEmitter, HostListener } from '@angular/core';
import { Component, OnInit, Input, Output, EventEmitter, HostListener, OnDestroy } from '@angular/core';
import { Observable } from 'rxjs';
import { ApiService } from '../../services/api.service';
import { MenuGroup } from '../../interfaces/services.interface';
@ -12,7 +12,7 @@ import { StateService } from '../../services/state.service';
styleUrls: ['./menu.component.scss']
})
export class MenuComponent implements OnInit {
export class MenuComponent implements OnInit, OnDestroy {
@Input() navOpen: boolean = false;
@Output() loggedOut = new EventEmitter<boolean>();
@Output() menuToggled = new EventEmitter<boolean>();
@ -98,4 +98,8 @@ export class MenuComponent implements OnInit {
this.toggleMenu(false);
}
}
ngOnDestroy(): void {
this.stateService.menuOpen$.next(false);
}
}