fix(tasks): auto-open create modal when accessing /projects/{project}/tasks/create

This commit is contained in:
Javier Braña
2026-08-04 09:53:57 +02:00
parent 1a61e219c6
commit 16efe381c5
2 changed files with 37 additions and 33 deletions
+2
View File
@@ -78,6 +78,8 @@ class TaskForm extends Component
} else {
$this->mode = 'create';
abort_unless(Auth::user()->can('create tasks', $project), 403);
// Auto-open modal when accessed via route (create page)
$this->showModal = true;
}
}
@@ -74,6 +74,7 @@ new class extends Component
@endcan
</div>
<div class="flex justify-between h-16">
<!-- Language Switcher -->
<div class="hidden sm:flex sm:items-center sm:ms-2">
@livewire('common.language-switcher')
@@ -113,6 +114,7 @@ new class extends Component
</x-slot>
</x-dropdown>
</div>
</div>
<!-- Hamburger -->
<div class="-me-2 flex items-center sm:hidden">