Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload the page when the order closes #133

Open
Jan-PieterBaert opened this issue Aug 30, 2019 · 3 comments
Open

Reload the page when the order closes #133

Jan-PieterBaert opened this issue Aug 30, 2019 · 3 comments
Labels
feature New feature or request level: medium

Comments

@Jan-PieterBaert
Copy link
Member

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

@wschella
Copy link
Member

Is quite annoying when you have no internet tho.

@redfast00
Copy link
Member

if hasInternet():
    reloadpage()
else:
    alert("People might have ordered, please refresh the page")

@wschella
Copy link
Member

wschella commented Aug 30, 2019

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

@NuttyShrimp NuttyShrimp added feature New feature or request level: medium labels Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request level: medium
Projects
Status: No status
Development

No branches or pull requests

4 participants