Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ <h6 class="dropdown-header" i18n="master-page.layer2-networks-header">Layer 2 Ne
<li class="nav-item" routerLinkActive="active" id="btn-assets">
<a class="nav-link" [routerLink]="['/assets' | relativeUrl]" (click)="collapse()"><fa-icon [icon]="['fas', 'database']" [fixedWidth]="true" i18n-title="master-page.assets" title="Assets"></fa-icon></a>
</li>
<li class="nav-item" routerLinkActive="active" [routerLinkActiveOptions]="{exact: true}" id="btn-angor" *ngIf="stateService.isAngorEnabled()">
<a class="nav-link" [routerLink]="['/angor' | relativeUrl]" (click)="collapse()"><fa-icon [icon]="['fas', 'boxes-stacked']" [fixedWidth]="true" title="Angor Projects"></fa-icon></a>
</li>
<li class="nav-item mr-2" routerLinkActive="active" id="btn-docs">
<a class="nav-link" [routerLink]="['/docs' | relativeUrl]" (click)="collapse()"><fa-icon [icon]="['fas', 'book']" [fixedWidth]="true" i18n-title="documentation.title" title="Documentation"></fa-icon></a>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class LiquidMasterPageComponent implements OnInit {
footerVisible = true;

constructor(
private stateService: StateService,
public stateService: StateService,
private languageService: LanguageService,
private enterpriseService: EnterpriseService,
private navigationService: NavigationService,
Expand All @@ -35,7 +35,7 @@ export class LiquidMasterPageComponent implements OnInit {
this.urlLanguage = this.languageService.getLanguageForUrl();
this.navigationService.subnetPaths.subscribe((paths) => {
this.networkPaths = paths;
if (paths.liquid.indexOf('docs') > -1) {
if (paths.liquid && paths.liquid.indexOf('docs') > -1) {
this.footerVisible = false;
} else {
this.footerVisible = true;
Expand All @@ -50,4 +50,8 @@ export class LiquidMasterPageComponent implements OnInit {
onResize(): void {
this.isMobile = window.innerWidth <= 767.98;
}

isAngorEnabledForLiquid(): boolean {
return true; // Enable Angor for all Liquid networks
}
}
4 changes: 4 additions & 0 deletions frontend/src/app/liquid/liquid-master-page.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ const routes: Routes = [
path: 'api',
loadChildren: () => import('../docs/docs.module').then(m => m.DocsModule)
},
{
path: 'angor',
loadChildren: () => import('../angor/angor.module').then(m => m.AngorModule)
},
],
},
];
Expand Down
6 changes: 4 additions & 2 deletions frontend/src/app/services/state.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,10 @@ export class StateService {
}

isAngorEnabled() {
return this.env.ANGOR_ENABLED;
}
// Enabling Angor for liquid networks
return (this.env.ANGOR_ENABLED || this.env.BASE_MODULE === 'liquid') &&
(this.network === 'liquid' || this.network === 'liquidtestnet' || this.env.BASE_MODULE === 'liquid');
}

getHiddenProp(){
const prefixes = ['webkit', 'moz', 'ms', 'o'];
Expand Down