Switch to isMempoolSpaceBuild for enterprise nav

This commit is contained in:
hunicus 2025-12-05 18:40:48 +09:00
parent c43d0a922e
commit e7a22c3587
No known key found for this signature in database
GPG key ID: 24837C51B6D81FD9
2 changed files with 3 additions and 2 deletions

View file

@ -113,12 +113,12 @@
<div class="svg-wrapper"><app-svg-images name="nav-faucet-drip" width="21.59" height="100%"></app-svg-images></div>
</a>
</li>
<li class="nav-item" routerLinkActive="active" id="btn-docs" *ngIf="!officialMempoolSpace">
<li class="nav-item" routerLinkActive="active" id="btn-docs" *ngIf="!officialMempoolSpaceBuild">
<a class="nav-link" [routerLink]="['/docs' | relativeUrl ]" (click)="collapse()">
<div class="svg-wrapper"><app-svg-images name="nav-book" width="21.59" height="100%"></app-svg-images></div>
</a>
</li>
<li class="nav-item" routerLinkActive="active" id="btn-enterprise" *ngIf="officialMempoolSpace">
<li class="nav-item" routerLinkActive="active" id="btn-enterprise" *ngIf="officialMempoolSpaceBuild">
<a class="nav-link" [routerLink]="['/enterprise' | relativeUrl ]" (click)="collapse()">
<div class="svg-wrapper"><app-svg-images name="nav-enterprise" width="21.59" height="100%"></app-svg-images></div>
</a>

View file

@ -24,6 +24,7 @@ export class MasterPageComponent implements OnInit, OnDestroy {
navCollapsed = false;
isMobile = window.innerWidth <= 767.98;
officialMempoolSpace = this.stateService.env.OFFICIAL_MEMPOOL_SPACE;
officialMempoolSpaceBuild = this.stateService.isMempoolSpaceBuild;
urlLanguage: string;
subdomain = '';
networkPaths: { [network: string]: string };