diff --git a/frontend/src/app/app-routing.module.ts b/frontend/src/app/app-routing.module.ts
index 37fb1d62d..713fec384 100644
--- a/frontend/src/app/app-routing.module.ts
+++ b/frontend/src/app/app-routing.module.ts
@@ -274,6 +274,10 @@ let routes: Routes = [
path: 'docs/api/:type',
component: DocsComponent
},
+ {
+ path: 'docs/faq',
+ component: DocsComponent
+ },
{
path: 'docs/api',
redirectTo: 'docs/api/rest'
@@ -410,6 +414,10 @@ let routes: Routes = [
path: 'docs/api/:type',
component: DocsComponent
},
+ {
+ path: 'docs/faq',
+ component: DocsComponent
+ },
{
path: 'docs/api',
redirectTo: 'docs/api/rest'
diff --git a/frontend/src/app/components/docs/docs.component.html b/frontend/src/app/components/docs/docs.component.html
index d6b43f064..21d6ca93e 100644
--- a/frontend/src/app/components/docs/docs.component.html
+++ b/frontend/src/app/components/docs/docs.component.html
@@ -4,9 +4,9 @@
Documentation
-
+
-
- FAQ
+ FAQ
FAQ placeholder
@@ -15,7 +15,7 @@
-
- API - REST
+ API - REST
@@ -24,7 +24,7 @@
-
- API - WebSocket
+ API - WebSocket
diff --git a/frontend/src/app/components/docs/docs.component.ts b/frontend/src/app/components/docs/docs.component.ts
index f75900dc2..042ed435b 100644
--- a/frontend/src/app/components/docs/docs.component.ts
+++ b/frontend/src/app/components/docs/docs.component.ts
@@ -24,13 +24,13 @@ export class DocsComponent implements OnInit {
if( url[1].path === "faq" ) {
this.activeTab = 0;
} else if( url[2].path === "rest" ) {
- this.activeTab = 1;
+ this.activeTab = 1;
} else {
this.activeTab = 2;
}
-
+
this.env = this.stateService.env;
- this.showWebSocketTab = ( ! ( ( this.env.BASE_MODULE === "bisq" ) || ( this.stateService.network === "bisq" ) || ( this.stateService.network === "liquidtestnet" ) ) );
- this.showFaqTab = ( ( this.stateService.network === "" ) || ( this.stateService.network === "signet" ) || ( this.stateService.network === "testnet" ) ) ? true : false;
+ this.showWebSocketTab = ( ! ( ( this.stateService.network === "bisq" ) || ( this.stateService.network === "liquidtestnet" ) ) );
+ this.showFaqTab = ( this.env.BASE_MODULE === 'mempool' ) ? true : false;
}
}