Switch audit faq conditions to env.audit

From OFFICIAL_MEMPOOL_SPACE.
This commit is contained in:
hunicus
2023-02-15 01:27:43 -05:00
parent b4c30cad5c
commit 27a9622875
5 changed files with 8 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ export class ApiDocsNavComponent implements OnInit {
@Output() navLinkClickEvent: EventEmitter<any> = new EventEmitter();
env: Env;
tabData: any[];
officialMempoolInstance: boolean;
auditEnabled: boolean;
constructor(
private stateService: StateService
@@ -23,7 +23,7 @@ export class ApiDocsNavComponent implements OnInit {
ngOnInit(): void {
this.env = this.stateService.env;
this.officialMempoolInstance = this.env.OFFICIAL_MEMPOOL_SPACE;
this.auditEnabled = this.env.AUDIT;
if (this.whichTab === 'rest') {
this.tabData = restApiDocsData;
} else if (this.whichTab === 'faq') {