2
0
mirror of https://github.com/Ride-The-Lightning/RTL synced 2024-11-15 18:13:00 +00:00
RTL/src/app/eclair/home/node-info/node-info.component.ts

23 lines
743 B
TypeScript
Raw Normal View History

import { Component, OnChanges, Input } from '@angular/core';
import { GetInfo } from '../../../shared/models/eclModels';
import { CommonService } from '../../../shared/services/common.service';
@Component({
selector: 'rtl-ecl-node-info',
templateUrl: './node-info.component.html',
styleUrls: ['./node-info.component.scss']
})
export class ECLNodeInfoComponent implements OnChanges {
@Input() information: GetInfo;
@Input() showColorFieldSeparately: false;
public chains: Array<string> = [''];
constructor(private commonService: CommonService) { }
ngOnChanges() {
this.chains = [];
this.chains.push('Bitcoin ' + (this.information.network ? this.commonService.titleCase(this.information.network) : 'Testnet'));
}
}