You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RTL/src/app/lnd/home/channel-liquidity-info/channel-liquidity-info.comp...

22 lines
593 B
TypeScript

import { Component, Input } from '@angular/core';
4 years ago
import { Router } from '@angular/router';
import { Channel } from '../../../shared/models/lndModels';
@Component({
selector: 'rtl-channel-liquidity-info',
templateUrl: './channel-liquidity-info.component.html',
styleUrls: ['./channel-liquidity-info.component.scss']
})
export class ChannelLiquidityInfoComponent {
@Input() direction: string;
@Input() totalLiquidity: number;
@Input() allChannels: Channel[];
4 years ago
constructor(private router: Router) {}
goToChannels() {
this.router.navigateByUrl('/lnd/peerschannels');
}
}