Fixes for pushState and livewire conflicting use of prop
This commit is contained in:
parent
7a7b88721e
commit
afa5962596
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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],
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue