Bug-fix (CLN Boltz): Hide claim tx id and routing fee for non-zero conf reverse swap

pull/1366/head
ShahanaFarooqui 3 months ago
parent 86cef687a0
commit 3acfb2b044

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -87,7 +87,7 @@
</div> </div>
</div> </div>
<ng-template #swapStatusBlock> <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> </ng-template>
<div *ngIf="flgShowInfo" fxLayout="column" fxFlex="100" fxLayoutAlign="start stretch" class="info-graphics-container" [@opacityAnimation]> <div *ngIf="flgShowInfo" fxLayout="column" fxFlex="100" fxLayoutAlign="start stretch" class="info-graphics-container" [@opacityAnimation]>
<div fxLayout="column" fxFlex="100" fxLayoutAlign="space-between stretch"> <div fxLayout="column" fxFlex="100" fxLayoutAlign="space-between stretch">

@ -7,22 +7,22 @@
<ng-template #swapOutBlock> <ng-template #swapOutBlock>
<div fxLayout="column"> <div fxLayout="column">
<div fxLayout="row"> <div fxLayout="row">
<div fxFlex="50"> <div fxFlex="33">
<h4 fxLayoutAlign="start" class="font-bold-500">ID</h4> <h4 fxLayoutAlign="start" class="font-bold-500">ID</h4>
<span class="foreground-secondary-text">{{swapStatus?.id}}</span> <span class="foreground-secondary-text">{{swapStatus?.id}}</span>
</div> </div>
<div fxFlex="50"> <div *ngIf="acceptZeroConf" fxFlex="33">
<h4 fxLayoutAlign="start" class="font-bold-500">Routing Fee (mSats)</h4> <h4 fxLayoutAlign="start" class="font-bold-500">Routing Fee (mSats)</h4>
<span class="foreground-secondary-text">{{swapStatus?.routingFeeMilliSat | number}}</span> <span class="foreground-secondary-text">{{swapStatus?.routingFeeMilliSat | number}}</span>
</div> </div>
</div> <div *ngIf="acceptZeroConf" fxFlex="33">
<mat-divider class="w-100 my-1" />
<div fxLayout="row">
<div fxFlex="50">
<h4 fxLayoutAlign="start" class="font-bold-500">Claim Transaction ID</h4> <h4 fxLayoutAlign="start" class="font-bold-500">Claim Transaction ID</h4>
<span class="foreground-secondary-text">{{swapStatus?.claimTransactionId}}</span> <span class="foreground-secondary-text">{{swapStatus?.claimTransactionId}}</span>
</div> </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> <h4 fxLayoutAlign="start" class="font-bold-500">Lockup Address</h4>
<span class="foreground-secondary-text">{{swapStatus?.lockupAddress}}</span> <span class="foreground-secondary-text">{{swapStatus?.lockupAddress}}</span>
</div> </div>

@ -11,6 +11,7 @@ export class SwapStatusComponent {
@Input() swapStatus: any = null; @Input() swapStatus: any = null;
@Input() direction = SwapTypeEnum.SWAP_OUT; @Input() direction = SwapTypeEnum.SWAP_OUT;
@Input() acceptZeroConf = false;
public swapTypeEnum = SwapTypeEnum; public swapTypeEnum = SwapTypeEnum;
constructor() {} constructor() {}

Loading…
Cancel
Save