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.
76 lines
4.5 KiB
HTML
76 lines
4.5 KiB
HTML
<div fxLayout="column" fxFlex="100" class="padding-gap">
|
|
<form fxLayout="column" fxLayoutAlign="space-between stretch" fxLayout.gt-sm="row wrap" (ngSubmit)="queryRoutesForm.form.valid && onQueryRoutes()" #queryRoutesForm="ngForm">
|
|
<div fxFlex="100" class="alert alert-warn">
|
|
<fa-icon [icon]="faExclamationTriangle" class="mr-1 alert-icon"></fa-icon>
|
|
<span>The actual routing fee on a payment can be different from the fee shown on query routes.</span>
|
|
</div>
|
|
<mat-form-field fxFlex="69" fxLayoutAlign="start end">
|
|
<input matInput placeholder="Destination Pubkey" name="destinationPubkey" [(ngModel)]="destinationPubkey" tabindex="1" required #destPubkey="ngModel">
|
|
<mat-error *ngIf="!destinationPubkey">Destination pubkey is required.</mat-error>
|
|
</mat-form-field>
|
|
<mat-form-field fxFlex="29" fxLayoutAlign="start end">
|
|
<input matInput placeholder="Amount (Sats)" [(ngModel)]="amount" name="amount" tabindex="2" type="number" [step]="1000" [min]="0" required>
|
|
<mat-error *ngIf="!amount">Amount is required.</mat-error>
|
|
</mat-form-field>
|
|
<div fxLayout="row" class="mt-1">
|
|
<button class="mr-1" mat-stroked-button color="primary" tabindex="3" type="reset" (click)="resetData()">Clear</button>
|
|
<button mat-flat-button color="primary" type="submit" tabindex="4">Query Route</button>
|
|
</div>
|
|
</form>
|
|
<div fxLayout="row" fxLayoutAlign="start center" class="page-sub-title-container mt-2 mb-1">
|
|
<div fxFlex="70">
|
|
<fa-icon [icon]="faRoute" class="page-title-img mr-1"></fa-icon>
|
|
<span class="page-title">Transaction Route</span>
|
|
</div>
|
|
</div>
|
|
<div [perfectScrollbar] class="table-container mb-6">
|
|
<mat-progress-bar *ngIf="flgLoading[0]===true" mode="indeterminate"></mat-progress-bar>
|
|
<table mat-table #table [dataSource]="qrHops" matSort [ngClass]="{'overflow-auto error-border': flgLoading[0]==='error','overflow-auto': true}">
|
|
<ng-container matColumnDef="id">
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header> ID </th>
|
|
<td mat-cell *matCellDef="let hop">
|
|
<div class="ellipsis-parent" [ngStyle]="{'max-width': (screenSize === screenSizeEnum.XS) ? '12rem' : '40rem'}">
|
|
<span class="ellipsis-child">{{hop?.id}}</span>
|
|
</div>
|
|
</td>
|
|
</ng-container>
|
|
<ng-container matColumnDef="alias">
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header class="pl-1"> Alias </th>
|
|
<td mat-cell *matCellDef="let hop" class="pl-1">
|
|
<div class="ellipsis-parent" [ngStyle]="{'max-width': (screenSize === screenSizeEnum.XS) ? '12rem' : '40rem'}">
|
|
<span class="ellipsis-child">{{hop?.alias}}</span>
|
|
</div>
|
|
</td>
|
|
</ng-container>
|
|
<ng-container matColumnDef="channel">
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header class="pl-1"> Channel </th>
|
|
<td mat-cell *matCellDef="let hop" class="pl-1"> {{hop?.channel}} </td>
|
|
</ng-container>
|
|
<ng-container matColumnDef="direction">
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header class="pl-1"> Direction </th>
|
|
<td mat-cell *matCellDef="let hop" class="pl-1"> {{hop?.direction}} </td>
|
|
</ng-container>
|
|
<ng-container matColumnDef="delay">
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header arrowPosition="before" class="pl-1"> Delay </th>
|
|
<td mat-cell *matCellDef="let hop" class="pl-1"><span fxLayoutAlign="end center"> {{hop?.delay | number}} </span>
|
|
</td>
|
|
</ng-container>
|
|
<ng-container matColumnDef="msatoshi">
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header arrowPosition="before" class="pl-1"> Amount (Sats) </th>
|
|
<td mat-cell *matCellDef="let hop" class="pl-1"><span fxLayoutAlign="end center"> {{hop?.msatoshi/1000 | number}}
|
|
</span></td>
|
|
</ng-container>
|
|
<ng-container matColumnDef="actions">
|
|
<th mat-header-cell *matHeaderCellDef class="pl-2 pr-3">
|
|
<div class="bordered-box table-actions-select" fxLayoutAlign="center center">Actions</div>
|
|
</th>
|
|
<td mat-cell *matCellDef="let hop" class="pl-2 pr-3" fxLayoutAlign="end center">
|
|
<button mat-stroked-button color="primary" type="button" tabindex="4" (click)="onHopClick(hop, $event)" class="table-actions-button">View Info</button>
|
|
</td>
|
|
</ng-container>
|
|
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
|
</table>
|
|
</div>
|
|
</div>
|