Prorotyp ekranu v3

This commit is contained in:
2026-05-25 14:49:09 +02:00
parent 617fcecfbc
commit a5adf77d44
4 changed files with 65 additions and 5 deletions

View File

@@ -400,7 +400,7 @@ window.selectedAnimationHtml = null;
}
fetchOrders();
setInterval(fetchOrders, 3000);
setInterval(fetchOrders, 10000);
// --- CALL WAITER LOGIC ---
let billState = { payment: '', doc: '', nip: '', company: null };
@@ -431,6 +431,21 @@ window.selectedAnimationHtml = null;
}
};
window.openWaiterDialog = function() {
document.getElementById("waiterModal").classList.add("active");
document.body.style.overflow = 'hidden';
};
window.closeWaiterDialog = function() {
document.getElementById("waiterModal").classList.remove("active");
document.body.style.overflow = '';
};
window.confirmCallWaiter = function() {
closeWaiterDialog();
callWaiter('order');
};
window.openBillDialog = async function() {
billState = { payment: '', doc: '', nip: '', company: null, selectedBillId: null };
document.getElementById("billModal").classList.add("active");