Skip to content

Commit

Permalink
Bug-fix (CLN Boltz): Hide claim tx id and routing fee for non-zero co…
Browse files Browse the repository at this point in the history
…nf reverse swap
  • Loading branch information
ShahanaFarooqui committed Mar 14, 2024
1 parent 86cef68 commit 3acfb2b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion frontend/index.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions frontend/main.6539a03bc601bec5.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion frontend/main.bb1d6589ffe4efe7.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ <h4 *ngIf="swapStatus" fxLayoutAlign="start" class="font-bold-500 mt-2">{{(swapS
</div>
</div>
<ng-template #swapStatusBlock>
<rtl-boltz-swap-status fxLayout="column" [swapStatus]="swapStatus" [direction]="direction" />
<rtl-boltz-swap-status fxLayout="column" [swapStatus]="swapStatus" [acceptZeroConf]="inputFormGroup?.controls?.acceptZeroConf.value" [direction]="direction" />
</ng-template>
<div *ngIf="flgShowInfo" fxLayout="column" fxFlex="100" fxLayoutAlign="start stretch" class="info-graphics-container" [@opacityAnimation]>
<div fxLayout="column" fxFlex="100" fxLayoutAlign="space-between stretch">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@
<ng-template #swapOutBlock>
<div fxLayout="column">
<div fxLayout="row">
<div fxFlex="50">
<div fxFlex="33">
<h4 fxLayoutAlign="start" class="font-bold-500">ID</h4>
<span class="foreground-secondary-text">{{swapStatus?.id}}</span>
</div>
<div fxFlex="50">
<div *ngIf="acceptZeroConf" fxFlex="33">
<h4 fxLayoutAlign="start" class="font-bold-500">Routing Fee (mSats)</h4>
<span class="foreground-secondary-text">{{swapStatus?.routingFeeMilliSat | number}}</span>
</div>
</div>
<mat-divider class="w-100 my-1" />
<div fxLayout="row">
<div fxFlex="50">
<div *ngIf="acceptZeroConf" fxFlex="33">
<h4 fxLayoutAlign="start" class="font-bold-500">Claim Transaction ID</h4>
<span class="foreground-secondary-text">{{swapStatus?.claimTransactionId}}</span>
</div>
<div fxFlex="50">
</div>
<mat-divider class="w-100 my-1" />
<div fxLayout="row">
<div fxFlex="100">
<h4 fxLayoutAlign="start" class="font-bold-500">Lockup Address</h4>
<span class="foreground-secondary-text">{{swapStatus?.lockupAddress}}</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export class SwapStatusComponent {

@Input() swapStatus: any = null;
@Input() direction = SwapTypeEnum.SWAP_OUT;
@Input() acceptZeroConf = false;
public swapTypeEnum = SwapTypeEnum;

constructor() {}
Expand Down

0 comments on commit 3acfb2b

Please sign in to comment.