[accelerator] fix pizza accel copy/eta

This commit is contained in:
nymkappa 2024-04-16 21:09:30 +09:00
parent 7f8dc74146
commit 3db89e3dee
No known key found for this signature in database
GPG key ID: 92358FC85D9645DE
2 changed files with 9 additions and 3 deletions

View file

@ -21,7 +21,7 @@
<input type="radio" class="form-check-input" id="accelerate" name="accelerate" (change)="selectedOptionChanged($event)">
<label class="form-check-label d-flex flex-column" for="accelerate">
<span class="font-weight-bold">Accelerate</span>
<span style="color: rgb(186, 186, 186); font-size: 14px;">Settlement expected in ~1 hour or less<br>
<span style="color: rgb(186, 186, 186); font-size: 14px;">Settlement expected within ~1 hour (or less)<br>
@if (!calculating) {
<app-fiat [value]="cost"></app-fiat>fee (<span><small style="font-family: monospace;">{{ cost | number }}</small>&nbsp;<span class="symbol" i18n="shared.sats|sats">sats</span></span>)
} @else {
@ -38,7 +38,13 @@
<input type="radio" class="form-check-input" id="wait" name="accelerate" (change)="selectedOptionChanged($event)">
<label class="form-check-label d-flex flex-column" for="wait">
<span class="font-weight-bold">Wait</span>
<span style="color: rgb(186, 186, 186); font-size: 14px;">Settlement expected to occur <app-time kind="within" [time]="eta" [fastRender]="false" [fixedRender]="true"></app-time></span>
@if (eta) {
<span style="color: rgb(186, 186, 186); font-size: 14px;">Settlement expected <app-time kind="within" [time]="eta" [fastRender]="false" [fixedRender]="true"></app-time> or less</span>
} @else {
<span style="color: rgb(186, 186, 186); font-size: 14px;">
<span>Settlement expected within several hours (or more)</span>
</span>
}
</label>
</div>
</div>

View file

@ -11,7 +11,7 @@ import { AudioService } from '../../services/audio.service';
styleUrls: ['./accelerate-checkout.component.scss']
})
export class AccelerateCheckout implements OnInit, OnDestroy {
@Input() eta: number = Date.now() + 123456789;
@Input() eta: number | null = null;
@Input() txid: string = '70c18d76cdb285a1b5bd87fdaae165880afa189809c30b4083ff7c0e69ee09ad';
@Input() scrollEvent: boolean;
@Output() close = new EventEmitter<null>();