mirror of
https://github.com/temetro/temetro.git
synced 2026-07-26 11:58:14 +00:00
frontend: show lab permission row in care-team employee dialog
CLINICAL_RESOURCES includes "lab" but the employee detail dialog only mapped patient/appointment/prescription/task, so the lab row rendered as the raw i18n key with no icon. Add a FlaskConical icon and a "Lab results" label. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import {
|
||||
CalendarDays,
|
||||
FlaskConical,
|
||||
ListChecks,
|
||||
Pill,
|
||||
Trash2,
|
||||
@@ -41,6 +42,7 @@ const RESOURCE_ICONS: Record<string, React.ReactNode> = {
|
||||
appointment: <CalendarDays className="size-4" />,
|
||||
prescription: <Pill className="size-4" />,
|
||||
task: <ListChecks className="size-4" />,
|
||||
lab: <FlaskConical className="size-4" />,
|
||||
};
|
||||
|
||||
// One row of /api/staff — shared with the Care Team panel.
|
||||
|
||||
@@ -1352,7 +1352,8 @@
|
||||
"patient": "Patients",
|
||||
"appointment": "Appointments",
|
||||
"prescription": "Prescriptions",
|
||||
"task": "Tasks"
|
||||
"task": "Tasks",
|
||||
"lab": "Lab results"
|
||||
},
|
||||
"actions": {
|
||||
"read": "View",
|
||||
|
||||
Reference in New Issue
Block a user