ZeusWPI / Haldis

Haldis is your friendly neighbourhood servant. He exists so lazy fucks like you and me don't need to keep tabs of who is ordering what from where.
Other
13 stars 15 forks source link

Reload the page when the order closes #133

Open Jan-PieterBaert opened 4 years ago

Jan-PieterBaert commented 4 years ago

This will make sure the courier doesn't have an outdated list of order and forgets something

wschella commented 4 years ago

Is quite annoying when you have no internet tho.

redfast00 commented 4 years ago
if hasInternet():
    reloadpage()
else:
    alert("People might have ordered, please refresh the page")
wschella commented 4 years ago

i propose:

let result = doLastUpdateBeforeClosing();
if result == Error {
 alert("people might have ..."
} else {
 displayOrders();
}

checking connectivity is non trivial, and requires sending a request any way.

edit: this is also non trivial cause of server side templates