mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2026-03-03 02:47:02 +00:00
Improved livewire state management
This commit is contained in:
@@ -26,7 +26,7 @@ class ShowChartRequest extends Request
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
/**@var \App\Models\User auth()->user */
|
||||
/** @var \App\Models\User auth()->user */
|
||||
$user = auth()->user();
|
||||
|
||||
return $user->isAdmin() || $user->hasPermission('view_dashboard');
|
||||
|
||||
@@ -171,7 +171,6 @@ class InvoicePay extends Component
|
||||
|
||||
$this->setContext($invite->key,'fields', $fields); // $this->context['fields'] = $fields;
|
||||
|
||||
|
||||
foreach ($fields as $index => $field) {
|
||||
$_field = $this->mappings[$field['name']];
|
||||
|
||||
@@ -303,6 +302,7 @@ class InvoicePay extends Component
|
||||
|
||||
public function render(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
{
|
||||
//@phpstan-ignore-next-line
|
||||
$invite = \App\Models\InvoiceInvitation::with('contact.client', 'company')->withTrashed()->find($this->invitation_id);
|
||||
|
||||
return render('flow2.invoice-pay', ['_key' => $invite->key]);
|
||||
|
||||
@@ -29,7 +29,9 @@ class UnderOverPayment extends Component
|
||||
public $errors = '';
|
||||
|
||||
public $payableInvoices = [];
|
||||
|
||||
public $_key;
|
||||
|
||||
public function mount()
|
||||
{
|
||||
|
||||
|
||||
109
public/build/assets/app-aa93be80.js
vendored
Normal file
109
public/build/assets/app-aa93be80.js
vendored
Normal file
File diff suppressed because one or more lines are too long
104
public/build/assets/app-eee19136.js
vendored
104
public/build/assets/app-eee19136.js
vendored
File diff suppressed because one or more lines are too long
@@ -12,7 +12,7 @@
|
||||
"file": "assets/wait-8f4ae121.js"
|
||||
},
|
||||
"resources/js/app.js": {
|
||||
"file": "assets/app-eee19136.js",
|
||||
"file": "assets/app-aa93be80.js",
|
||||
"imports": [
|
||||
"_index-08e160a7.js",
|
||||
"__commonjsHelpers-725317a4.js"
|
||||
|
||||
Reference in New Issue
Block a user