fix(tasks): auto-open create modal when accessing /projects/{project}/tasks/create
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user