Feat: Show channel visibility to open channel table (#359)

Feat: Show channel visibility to open channel table
pull/401/head
Joseph Goulden 4 years ago committed by GitHub
parent e16fd44b36
commit 8080b1bca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,8 +14,10 @@
<div class="ellipsis-parent" [ngStyle]="{'max-width': (screenSize === screenSizeEnum.XS) ? '10rem' : '22rem'}">
<span *ngIf="channel.active" class="dot green" matTooltip="Active" matTooltipPosition="right"></span>
<span *ngIf="!channel.active" class="dot yellow" matTooltip="Inactive" matTooltipPosition="right"></span>
<span *ngIf="channel.private" class="mr-1" matTooltip="Private" matTooltipPosition="right"><fa-icon [icon]="faEyeSlash"></fa-icon></span>
<span *ngIf="!channel.private" class="mr-1" matTooltip="Public" matTooltipPosition="right"><fa-icon [icon]="faEye"></fa-icon></span>
<span class="ellipsis-child">{{channel.remote_alias || channel.remote_pubkey}}</span>
</div>
</div>
</td>
</ng-container>
<ng-container matColumnDef="uptime">

@ -23,6 +23,7 @@ import { RTLEffects } from '../../../../../store/rtl.effects';
import * as LNDActions from '../../../../store/lnd.actions';
import * as RTLActions from '../../../../../store/rtl.actions';
import * as fromRTLReducer from '../../../../../store/rtl.reducers';
import {faEye, faEyeSlash} from "@fortawesome/free-solid-svg-icons";
@Component({
selector: 'rtl-channel-open-table',
@ -53,6 +54,8 @@ export class ChannelOpenTableComponent implements OnInit, OnDestroy {
public screenSize = '';
public screenSizeEnum = ScreenSizeEnum;
public versionsArr = [];
public faEye = faEye;
public faEyeSlash = faEyeSlash
private targetConf = 6;
private unSubs: Array<Subject<void>> = [new Subject(), new Subject(), new Subject(), new Subject(), new Subject(), new Subject()];

Loading…
Cancel
Save