poprawki w naglowkach w trybie lokalnym, poprawka progressbaru

This commit is contained in:
Mateusz Gruszczyński
2025-07-25 19:55:53 +02:00
parent 7dc49fe160
commit d42d973ffd
4 changed files with 61 additions and 14 deletions

View File

@@ -16,7 +16,6 @@ if (!window.receiptUploaderInitialized) {
const isDesktop = window.matchMedia("(pointer: fine)").matches;
// 🧼 Jedno miejsce, pełna logika desktopowa
if (isDesktop) {
if (cameraBtn) cameraBtn.remove(); // całkowicie usuń przycisk
if (inputCamera) inputCamera.remove(); // oraz input
@@ -80,6 +79,12 @@ if (!window.receiptUploaderInitialized) {
}
lightbox = GLightbox({ selector: ".glightbox" });
// Pokaż sekcję OCR jeśli była ukryta
const analysisBlock = document.getElementById("receiptAnalysisBlock");
if (analysisBlock) {
analysisBlock.classList.remove("d-none");
}
if (!window.receiptToastShown) {
showToast("Wgrano paragon", "success");
window.receiptToastShown = true;
@@ -96,7 +101,6 @@ if (!window.receiptUploaderInitialized) {
}
};
xhr.send(formData);
}