Disambiguate multiple channels with same node

This PR disambiguates the display of available channels to perform a circular rebalance with. This is very helpful if a node has multiple channels with the same peer.
pull/1011/head
Lee Salminen 2 years ago committed by GitHub
parent 386ff5afa6
commit ddb63c1bae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,7 +35,7 @@
<mat-form-field fxFlex="48" fxLayoutAlign="start end">
<input type="text" placeholder="Receive from Peer" aria-label="Receive from Peer" matInput formControlName="selRebalancePeer" (change)="onSelectedPeerChanged()" [matAutocomplete]="auto" tabindex="2" required>
<mat-autocomplete #auto="matAutocomplete" [displayWith]="displayFn" (optionSelected)="onSelectedPeerChanged()">
<mat-option *ngFor="let activeChannel of filteredActiveChannels | async" [value]="activeChannel">{{activeChannel.remote_alias || activeChannel.chan_id}}</mat-option>
<mat-option *ngFor="let activeChannel of filteredActiveChannels | async" [value]="activeChannel">{{activeChannel.remote_alias}} - {{activeChannel.chan_id}}</mat-option>
</mat-autocomplete>
<mat-error *ngIf="inputFormGroup.controls.selRebalancePeer.errors?.required">Receive from Peer is required.</mat-error>
<mat-error *ngIf="inputFormGroup.controls.selRebalancePeer.errors?.notfound">Receive from Peer not found in the list.</mat-error>
@ -133,4 +133,4 @@
</div>
</div>
</div>
</ng-template>
</ng-template>

Loading…
Cancel
Save