improvement: treatment plan now save on debounce. save treatment button removed.
This commit is contained in:
@@ -25,9 +25,7 @@ interface LabCasesDispatchPanelProps {
|
||||
recentOrganizationIds: string[];
|
||||
onRecentOrganizationPick: (orgId: string) => void;
|
||||
sendBusyId: string | null;
|
||||
saveLabBusy: boolean;
|
||||
onAddLabCase: () => void;
|
||||
onSaveLabCases: () => void;
|
||||
onSendLabCase: (labCase: LabCaseDraft) => void;
|
||||
}
|
||||
|
||||
@@ -46,9 +44,7 @@ export function LabCasesDispatchPanel({
|
||||
recentOrganizationIds,
|
||||
onRecentOrganizationPick,
|
||||
sendBusyId,
|
||||
saveLabBusy,
|
||||
onAddLabCase,
|
||||
onSaveLabCases,
|
||||
onSendLabCase,
|
||||
}: LabCasesDispatchPanelProps) {
|
||||
const t = useTranslations('treatment');
|
||||
@@ -133,7 +129,9 @@ export function LabCasesDispatchPanel({
|
||||
<div className="flex flex-wrap items-center justify-between gap-3">
|
||||
<div>
|
||||
<h3 className="text-sm font-semibold text-text-primary">{t('labDispatchTitle')}</h3>
|
||||
<p className="text-xs text-text-muted mt-0.5">{t('labDispatchSubtitle')}</p>
|
||||
<p className="text-xs text-text-muted mt-0.5">
|
||||
{t('labDispatchSubtitle')} {t('labDispatchSendHint')}
|
||||
</p>
|
||||
</div>
|
||||
<Button
|
||||
type="button"
|
||||
@@ -299,20 +297,6 @@ export function LabCasesDispatchPanel({
|
||||
</div>
|
||||
)}
|
||||
|
||||
{canEdit && (
|
||||
<div className="flex flex-wrap gap-3 pt-2 border-t border-border/60">
|
||||
<Button
|
||||
type="button"
|
||||
variant="secondary"
|
||||
disabled={disabled || saveLabBusy}
|
||||
isLoading={saveLabBusy}
|
||||
onClick={onSaveLabCases}
|
||||
>
|
||||
{t('saveLabShipments')}
|
||||
</Button>
|
||||
<p className="text-xs text-text-muted self-center">{t('labDispatchSaveHint')}</p>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user