Fix Livewire BindingResolutionException: replace @this calls in pushed scripts with #[On] + Livewire.emit
- Add #[On] attributes to 5 Livewire component methods:
- LayerManager::saveManualGeojson
- ProjectForm::setLocation
- ProjectMap::selectFeature (already had #[On])
- TaskForm::closeModal
- TaskKanban::updateTaskStatus
- Replace @this.method() in @push('scripts') with Livewire.emit() calls
- Fix DataTable event payloads from objects {id: X} to scalars X for:
- FeatureTable::map-select-feature
- InspectionTable::map-view-inspection, edit-inspection, delete-inspection
This commit is contained in:
@@ -63,6 +63,7 @@ class TaskKanban extends Component
|
||||
// Trigger re-render
|
||||
}
|
||||
|
||||
#[On('update-task-status')]
|
||||
public function updateTaskStatus(Task $task, string $status): void
|
||||
{
|
||||
abort_unless(Auth::user()->can('update', $task), 403);
|
||||
|
||||
Reference in New Issue
Block a user