pay btn
This commit is contained in:
@@ -91,6 +91,7 @@
|
||||
}
|
||||
</div>
|
||||
|
||||
@if (hasPartnerId()) {
|
||||
<button class="pay-btn" type="button" (click)="pay()" [disabled]="!canPay()">
|
||||
<span class="pay-btn__icon">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
||||
@@ -101,6 +102,7 @@
|
||||
</span>
|
||||
{{ 'fastcheck.pay_btn' | translate }}
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="card__footer">
|
||||
|
||||
@@ -74,6 +74,8 @@ export class FastcheckPage {
|
||||
|
||||
// Pass-through partner id from ?id= used by the "New" button link.
|
||||
partnerId = signal<string>('');
|
||||
// True only when a real ?id was present in the URL (not the default fallback).
|
||||
hasPartnerId = signal<boolean>(false);
|
||||
newQrUrl = computed(() => {
|
||||
const id = this.partnerId() || this.defaultPartnerId;
|
||||
return `https://qr.vitanova.network/?id=${encodeURIComponent(id)}`;
|
||||
@@ -145,7 +147,9 @@ export class FastcheckPage {
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
|
||||
// ?id=<partnerId> — used by the "New" button URL; fallback to default id.
|
||||
this.partnerId.set(params.get('id') ?? this.defaultPartnerId);
|
||||
const idParam = params.get('id');
|
||||
this.partnerId.set(idParam ?? this.defaultPartnerId);
|
||||
this.hasPartnerId.set(!!idParam);
|
||||
|
||||
// ?iid=xxxxxx-xxxxxx-xxxxxx — auto-fill and trigger lookup
|
||||
const iidParam = params.get('iid') ?? '';
|
||||
|
||||
Reference in New Issue
Block a user