Show rate limiting note on official instances only

Also fix some styling flaws resulting from hiding
the rate limiting text.
This commit is contained in:
hunicus
2022-06-07 23:27:35 -04:00
parent 9527b3e0a4
commit c73d059965
3 changed files with 10 additions and 4 deletions

View File

@@ -23,6 +23,7 @@ export class ApiDocsComponent implements OnInit {
restDocs: any[];
wsDocs: any;
screenWidth: number;
officialMempoolInstance: boolean;
constructor(
private stateService: StateService,
@@ -43,6 +44,7 @@ export class ApiDocsComponent implements OnInit {
ngOnInit(): void {
this.env = this.stateService.env;
this.officialMempoolInstance = this.env.OFFICIAL_MEMPOOL_SPACE;
this.network$ = merge(of(''), this.stateService.networkChanged$).pipe(
tap((network: string) => {
if (this.env.BASE_MODULE === 'mempool' && network !== '') {