You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If someone wants to perform multiple Cancel actions, it has to navigate between the /jobs page and the individual redirected /cancel.json pages, which makes it a bit tiresome.
Context
scrapyd v1.3.0
Proposal
The Cancel action through the /jobs UI should not redirect, but rather display the response in the same view (/jobs). Perhaps this cannot be done purely with HTML, and a bit of Javascript may be needed.
The text was updated successfully, but these errors were encountered:
Edit: Another idea is to maybe add a hidden input to the form, which, if received, causes the webservice to return a 302 to redirect to the homepage. While that's maybe simpler, the JavaScript solution is preferred, to avoid polluting the API with this sort of frontend logic.
jpmckinney
changed the title
Cancel button redirects to another page - and this makes the user experience a bit tiresome
Change Cancel button to call cancel.json via JavaScript, to avoid page navigation
Jul 15, 2024
Problem
When someone uses the
Cancel
button(s) available in the/jobs
page:the action redirects you to the
/cancel.json
page (which is the respective web service response), detailing something like the following:If someone wants to perform multiple
Cancel
actions, it has to navigate between the/jobs
page and the individual redirected/cancel.json
pages, which makes it a bit tiresome.Context
scrapyd v1.3.0
Proposal
The
Cancel
action through the/jobs
UI should not redirect, but rather display the response in the same view (/jobs
). Perhaps this cannot be done purely with HTML, and a bit of Javascript may be needed.The text was updated successfully, but these errors were encountered: