diff --git a/frontend/src/app/components/api-docs/api-docs.component.html b/frontend/src/app/components/api-docs/api-docs.component.html index b268545db..560017793 100644 --- a/frontend/src/app/components/api-docs/api-docs.component.html +++ b/frontend/src/app/components/api-docs/api-docs.component.html @@ -1,11 +1,12 @@ +
-

API documentation

+

{{ network.val === '' ? 'Bitcoin' : network.val.charAt(0).toUpperCase() + network.val.slice(1) }} API Service

\ No newline at end of file + +
diff --git a/frontend/src/app/components/api-docs/api-docs.component.scss b/frontend/src/app/components/api-docs/api-docs.component.scss index 5e208bcf8..c7e756b1e 100644 --- a/frontend/src/app/components/api-docs/api-docs.component.scss +++ b/frontend/src/app/components/api-docs/api-docs.component.scss @@ -2,7 +2,7 @@ font-size: 12px; } -.code { +code { background-color: #1d1f31; font-family: Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New; } diff --git a/frontend/src/app/components/api-docs/api-docs.component.ts b/frontend/src/app/components/api-docs/api-docs.component.ts index 3ec89c27b..5d8966f28 100644 --- a/frontend/src/app/components/api-docs/api-docs.component.ts +++ b/frontend/src/app/components/api-docs/api-docs.component.ts @@ -1,6 +1,7 @@ import { Component, OnInit } from '@angular/core'; import { StateService } from 'src/app/services/state.service'; import { WebsocketService } from 'src/app/services/websocket.service'; +import { Observable, merge, of } from 'rxjs'; @Component({ selector: 'app-api-docs', @@ -9,6 +10,7 @@ import { WebsocketService } from 'src/app/services/websocket.service'; }) export class ApiDocsComponent implements OnInit { hostname = document.location.hostname; + network$: Observable; active = 1; constructor( @@ -17,6 +19,7 @@ export class ApiDocsComponent implements OnInit { ) { } ngOnInit(): void { + this.network$ = merge(of(''), this.stateService.networkChanged$); this.websocketService.want(['blocks']); if (this.stateService.network === 'bisq') {