improvement: QRcode and shared link added to cases inorder to make it possible for staff users to share a case info with other staffs or other clinics.
This commit is contained in:
@@ -33,6 +33,7 @@ interface TaskRowProps {
|
||||
statusOptions: { value: LabTaskStatus; label: string }[];
|
||||
updatingTaskId: string | null;
|
||||
commentsOpen: boolean;
|
||||
showCommentsButton?: boolean;
|
||||
prosthesisCatalog: readonly ProsthesisCatalogEntry[];
|
||||
onStatusUpdate: (taskId: string, status: LabTaskStatus) => void;
|
||||
onToggleComments: (taskId: string) => void;
|
||||
@@ -55,6 +56,7 @@ export function TaskRow({
|
||||
statusOptions,
|
||||
updatingTaskId,
|
||||
commentsOpen,
|
||||
showCommentsButton = true,
|
||||
prosthesisCatalog,
|
||||
onStatusUpdate,
|
||||
onToggleComments,
|
||||
@@ -78,7 +80,7 @@ export function TaskRow({
|
||||
.join(' ');
|
||||
|
||||
const commentsButton =
|
||||
canEdit && !exiting ? (
|
||||
showCommentsButton && canEdit && !exiting ? (
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => onToggleComments(task.id)}
|
||||
|
||||
Reference in New Issue
Block a user