improvement: loading state added to buttons who interact with backend.
This commit is contained in:
@@ -45,8 +45,8 @@ interface LabCasesDispatchPanelProps {
|
||||
canInviteLab?: boolean;
|
||||
onInviteLab?: () => void;
|
||||
sendBusyId: string | null;
|
||||
onAddLabCase: () => void;
|
||||
onSendLabCase: (labCase: LabCaseDraft, comment?: string) => void;
|
||||
onAddLabCase: () => void | Promise<void>;
|
||||
onSendLabCase: (labCase: LabCaseDraft, comment?: string) => void | Promise<void>;
|
||||
onCommentError?: (message: string) => void;
|
||||
}
|
||||
|
||||
|
||||
@@ -2054,8 +2054,8 @@ export function TreatmentWorkspace({
|
||||
});
|
||||
}}
|
||||
sendBusyId={sendBusyId}
|
||||
onAddLabCase={() => void handleAddLabCase()}
|
||||
onSendLabCase={(lc, comment) => void handleSendLabCase(lc, comment)}
|
||||
onAddLabCase={() => handleAddLabCase()}
|
||||
onSendLabCase={(lc, comment) => handleSendLabCase(lc, comment)}
|
||||
onCommentError={showError}
|
||||
canInviteLab={canAccessOrganizations}
|
||||
onInviteLab={() => router.push('/organizations?action=invite-lab')}
|
||||
|
||||
Reference in New Issue
Block a user