changed urls for projects manager
This commit is contained in:
parent
020ede073b
commit
fc6edb2444
|
|
@ -12,9 +12,9 @@ public function index()
|
|||
return view('projects.index');
|
||||
}
|
||||
|
||||
public function show(Project $project)
|
||||
public function show(Project $project,?string $currentTab = null)
|
||||
{
|
||||
return view('projects.show', compact('project'));
|
||||
return $currentTab ? view('projects.show', compact(['project', 'currentTab'])) : redirect(route('project.show', [$project->id, 'download']));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,9 +25,6 @@ class ProjectManager extends Component
|
|||
public $showMailSettingsModal = false;
|
||||
|
||||
public $projectIdBeingDeleted;
|
||||
// public $span_json_path;
|
||||
// public $pivot_json_path;
|
||||
// public $harvest_json_path;
|
||||
|
||||
public array $pivotFiles;
|
||||
public array $spanFiles;
|
||||
|
|
@ -59,13 +56,6 @@ public function editMailSettings(Project $project)
|
|||
private function loadFormData(Project $project)
|
||||
{
|
||||
$this->formData = $project->toArray();
|
||||
// $this->pivot_json_path = $this->formData['pivot_json_path'];
|
||||
// $this->span_json_path = $this->formData['span_json_path'];
|
||||
// $this->harvest_json_path = $this->formData['harvest_json_path'];
|
||||
// $this->formData['pivot_json_path'] = null;
|
||||
// $this->formData['span_json_path'] = null;
|
||||
// $this->formData['harvest_json_path'] = null;
|
||||
// $this->formData['boundingBoxes'] = $project->boundingBoxes->toArray();
|
||||
$this->formData['mail_recipients'] = $project->emailRecipients->toArray() ?: [
|
||||
[
|
||||
'name' => '',
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
Route::get('/dashboard', function () {
|
||||
return view('dashboard');
|
||||
})->name('dashboard');
|
||||
Route::get('/projects/{project}', [\App\Http\Controllers\ProjectController::class, 'show'])->name('project.show');
|
||||
Route::get('/projects/{project}/{currentTab?}', [\App\Http\Controllers\ProjectController::class, 'show'])->name('project.show');
|
||||
Route::get('/projects/{projectReport}/download', [\App\Http\Controllers\ProjectReportController::class, 'download'])->name('project.report.download');
|
||||
Route::get('/projects', [\App\Http\Controllers\ProjectController::class, 'index'])->name('project');
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue