Open the matching workspace tab after specialty stage advance.
Deploy Ladill Care / deploy (push) Successful in 45s
Deploy Ladill Care / deploy (push) Successful in 45s
Stage Move CTAs and pills previously always redirected to overview; map each stage to its tab via shell config so examination lands on exam, etc. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -71,6 +71,7 @@ class BloodBankWorkspaceController extends Controller
|
||||
Visit $visit,
|
||||
SpecialtyModuleService $modules,
|
||||
SpecialtyVisitStageService $stages,
|
||||
SpecialtyShellService $shell,
|
||||
): RedirectResponse {
|
||||
$this->authorizeBloodBankClinical($request);
|
||||
$this->assertBloodBankManage($request, $modules);
|
||||
@@ -94,7 +95,11 @@ class BloodBankWorkspaceController extends Controller
|
||||
}
|
||||
|
||||
return redirect()
|
||||
->route('care.specialty.workspace', ['module' => 'blood_bank', 'visit' => $visit, 'tab' => 'overview'])
|
||||
->route('care.specialty.workspace', [
|
||||
'module' => 'blood_bank',
|
||||
'visit' => $visit,
|
||||
'tab' => $shell->workspaceTabForStage('blood_bank', $validated['stage']),
|
||||
])
|
||||
->with('success', 'Visit stage updated.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user