Fixes for pushState and livewire conflicting use of prop

This commit is contained in:
David Bomba 2025-11-27 09:18:42 +11:00
parent 7a7b88721e
commit afa5962596
9 changed files with 13 additions and 12 deletions

View File

@ -36,7 +36,7 @@ class CreditController extends Controller
$data = [
'credit' => $credit,
'key' => $invitation ? $invitation->key : false,
'_key' => $invitation ? $invitation->key : false,
'invitation' => $invitation
];

View File

@ -76,7 +76,7 @@ class InvoiceController extends Controller
$data = [
'invoice' => $invoice->service()->removeUnpaidGatewayFees()->save(),
'invitation' => $invitation ?: $invoice->invitations->first(),
'key' => $invitation ? $invitation->key : false,
'_key' => $invitation ? $invitation->key : false,
'hash' => $hash,
'variables' => $variables,
'invoices' => [$invoice->hashed_id],

View File

@ -59,7 +59,7 @@ class QuoteController extends Controller
$data = [
'quote' => $quote,
'key' => $invitation ? $invitation->key : false,
'_key' => $invitation ? $invitation->key : false,
'invitation' => $invitation,
'variables' => $variables,
];

View File

@ -100,7 +100,7 @@ class PurchaseOrderController extends Controller
$data = [
'purchase_order' => $purchase_order,
'key' => $invitation ? $invitation->key : false,
'_key' => $invitation ? $invitation->key : false,
'settings' => $purchase_order->company->settings,
'sidebar' => $this->sidebarMenu(),
'company' => $purchase_order->company,

View File

@ -22,6 +22,7 @@ parameters:
- 'app/Utils/Traits/*'
- 'Modules/Accounting/*'
- 'tests/*'
- '~/.cursor/*'
universalObjectCratesClasses:
- App\DataMapper\Tax\RuleInterface
- App\DataMapper\FeesAndLimits

View File

@ -25,8 +25,8 @@
document.addEventListener('DOMContentLoaded', () => {
@if($key)
window.history.pushState({}, "", "{{ url("client/credit/{$key}") }}");
@if($_key)
window.history.pushState({}, "", "{{ url("client/credit/{$_key}") }}");
@endif
});

View File

@ -110,8 +110,8 @@
document.addEventListener('DOMContentLoaded', () => {
@if($key)
window.history.pushState({}, "", "{{ url("client/invoice/{$key}") }}");
@if($_key)
window.history.pushState({}, "", "{{ url("client/invoice/{$_key}") }}");
@endif
});

View File

@ -53,8 +53,8 @@
document.addEventListener('DOMContentLoaded', () => {
@if($key)
window.history.pushState({}, "", "{{ url("vendor/purchase_order/{$key}") }}");
@if($_key)
window.history.pushState({}, "", "{{ url("vendor/purchase_order/{$_key}") }}");
@endif
});

View File

@ -89,8 +89,8 @@
document.addEventListener('DOMContentLoaded', () => {
@if($key)
window.history.pushState({}, "", "{{ url("client/quote/{$key}") }}");
@if($_key)
window.history.pushState({}, "", "{{ url("client/quote/{$_key}") }}");
@endif
});