Fix QR codes views to use user.qr-codes route names.
Deploy Ladill QR Plus / deploy (push) Successful in 56s

Removes missing topup route/modal and sends low-balance users to the platform wallet.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-07 06:02:33 +00:00
co-authored by Cursor
parent 6f4c68d274
commit bcd1cf5d28
9 changed files with 73 additions and 79 deletions
+6
View File
@@ -352,6 +352,7 @@ document.addEventListener('alpine:init', () => {
balance: Number(config.balance ?? 0),
price: Number(config.price ?? 0),
modalId: config.modalId ?? null,
topupUrl: config.topupUrl ?? null,
href: config.href ?? null,
requiresPayment: Object.prototype.hasOwnProperty.call(config, 'requiresPayment')
? config.requiresPayment !== false
@@ -367,6 +368,11 @@ document.addEventListener('alpine:init', () => {
return this.needsTopupFor(this.requiresPayment);
},
openTopup() {
if (this.topupUrl) {
window.location.href = this.topupUrl;
return;
}
if (! this.modalId) {
return;
}