https and ssl integration on the backend, frontend and started integration of logistics app as a separate frontend
This commit is contained in:
@ -121,7 +121,6 @@ async def generate_dewar_qrcode(dewar_id: int, db: Session = Depends(get_db)):
|
||||
|
||||
return {"message": "QR Code generated", "qrcode": dewar.unique_id}
|
||||
|
||||
|
||||
def generate_label(dewar):
|
||||
buffer = BytesIO()
|
||||
# Set page orientation to landscape
|
||||
|
@ -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