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 = [ $data = [
'credit' => $credit, 'credit' => $credit,
'key' => $invitation ? $invitation->key : false, '_key' => $invitation ? $invitation->key : false,
'invitation' => $invitation 'invitation' => $invitation
]; ];

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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