https and ssl integration on the backend, frontend and started integration of logistics app as a separate frontend
This commit is contained in:
@ -390,11 +390,12 @@ const DewarDetails: React.FC<DewarDetailsProps> = ({
|
||||
setChangesMade(true);
|
||||
};
|
||||
|
||||
const handleGenerateQRCode = () => {
|
||||
const handleGenerateQRCode = async () => {
|
||||
if (!dewar) return;
|
||||
|
||||
try {
|
||||
const newQrCodeValue = dewar.unique_id; // Using unique_id directly for QR code value
|
||||
const response = await DewarsService.generateDewarQrcodeDewarsDewarIdGenerateQrcodePost(dewar.id);
|
||||
const newQrCodeValue = response.unique_id;
|
||||
setQrCodeValue(newQrCodeValue);
|
||||
setIsQRCodeGenerated(true);
|
||||
setFeedbackMessage("QR Code generated successfully");
|
||||
@ -406,6 +407,7 @@ const DewarDetails: React.FC<DewarDetailsProps> = ({
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
const handleDownloadLabel = async () => {
|
||||
if (!dewar) return;
|
||||
|
||||
|
Reference in New Issue
Block a user