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

pull/1366/head
ShahanaFarooqui 2 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>
<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">

@ -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>

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

Loading…
Cancel
Save