Open
Description
Bug report
Description
Pressing the 'reset' button will always show the confirmation message, even if the reset HTTP request fails. We should show an error instead.
Reproduction steps
Steps to reproduce the behaviour:
- Don't run the backend
- So to sandbox mode
- Expand a configurable defence, e.g. character limit
- Press the reset button
- Confirmation shown
Expected behaviour
Show an error if the reset fails.
Screenshots
Software (please complete the following information):
- Browser: Edge
Acceptance criteria
GIVEN the backend is down
WHEN the reset button is pressed
THEN an error message is shown