mempool/frontend/src/app/components/about/about.component.ts
softsimon d22e4a03e6
Adding Bisq API to About page.
Watching partent bisq dump folder.
2020-07-18 12:59:12 +07:00

33 lines
924 B
TypeScript

import { Component, OnInit } from '@angular/core';
import { WebsocketService } from '../../services/websocket.service';
import { SeoService } from 'src/app/services/seo.service';
import { StateService } from 'src/app/services/state.service';
@Component({
selector: 'app-about',
templateUrl: './about.component.html',
styleUrls: ['./about.component.scss']
})
export class AboutComponent implements OnInit {
active = 1;
hostname = document.location.hostname;
constructor(
private websocketService: WebsocketService,
private seoService: SeoService,
private stateService: StateService,
) { }
ngOnInit() {
this.seoService.setTitle('Contributors');
this.websocketService.want(['blocks']);
if (this.stateService.network === 'bisq') {
this.active = 2;
}
if (document.location.port !== '443') {
this.hostname = this.hostname + ':' + document.location.port;
}
}
}