mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 22:58:30 +01:00
parent
46c4d57367
commit
3c6e18f198
3 changed files with 6 additions and 1 deletions
|
@ -45,7 +45,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div ngbDropdown class="w-33" *ngIf="stateService.env.ACCELERATOR">
|
||||
<div ngbDropdown class="w-33" *ngIf="stateService.env.ACCELERATOR && isMainnet">
|
||||
<button class="btn btn-primary w-100" id="dropdownBasic1" ngbDropdownToggle i18n="accelerator.accelerations">Accelerations</button>
|
||||
<div ngbDropdownMenu aria-labelledby="dropdownBasic1">
|
||||
<a class="dropdown-item" routerLinkActive="active" [routerLink]="['/graphs/acceleration/fees' | relativeUrl]"
|
||||
|
|
|
@ -9,6 +9,7 @@ import { WebsocketService } from '../../services/websocket.service';
|
|||
})
|
||||
export class GraphsComponent implements OnInit {
|
||||
flexWrap = false;
|
||||
isMainnet = this.stateService.isMainnet();
|
||||
|
||||
constructor(
|
||||
public stateService: StateService,
|
||||
|
|
|
@ -410,6 +410,10 @@ export class StateService {
|
|||
return this.network === 'liquid' || this.network === 'liquidtestnet';
|
||||
}
|
||||
|
||||
isMainnet(): boolean {
|
||||
return this.env.ROOT_NETWORK === '' && this.network === '';
|
||||
}
|
||||
|
||||
isAnyTestnet(): boolean {
|
||||
return ['testnet', 'testnet4', 'signet', 'liquidtestnet'].includes(this.network);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue