mirror of
https://github.com/temetro/temetro.git
synced 2026-08-28 11:27:40 +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 {
|
import {
|
||||||
CalendarDays,
|
CalendarDays,
|
||||||
|
FlaskConical,
|
||||||
ListChecks,
|
ListChecks,
|
||||||
Pill,
|
Pill,
|
||||||
Trash2,
|
Trash2,
|
||||||
@@ -41,6 +42,7 @@ const RESOURCE_ICONS: Record<string, React.ReactNode> = {
|
|||||||
appointment: <CalendarDays className="size-4" />,
|
appointment: <CalendarDays className="size-4" />,
|
||||||
prescription: <Pill className="size-4" />,
|
prescription: <Pill className="size-4" />,
|
||||||
task: <ListChecks className="size-4" />,
|
task: <ListChecks className="size-4" />,
|
||||||
|
lab: <FlaskConical className="size-4" />,
|
||||||
};
|
};
|
||||||
|
|
||||||
// One row of /api/staff — shared with the Care Team panel.
|
// One row of /api/staff — shared with the Care Team panel.
|
||||||
|
|||||||
@@ -1352,7 +1352,8 @@
|
|||||||
"patient": "Patients",
|
"patient": "Patients",
|
||||||
"appointment": "Appointments",
|
"appointment": "Appointments",
|
||||||
"prescription": "Prescriptions",
|
"prescription": "Prescriptions",
|
||||||
"task": "Tasks"
|
"task": "Tasks",
|
||||||
|
"lab": "Lab results"
|
||||||
},
|
},
|
||||||
"actions": {
|
"actions": {
|
||||||
"read": "View",
|
"read": "View",
|
||||||
|
|||||||
Reference in New Issue
Block a user