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

If saving a page fails for some reason, ensure that the changes are not lost #33

Open
AustinWise opened this issue Feb 13, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@AustinWise
Copy link
Owner

There are two ways I can think of to do this:

  • Redirect back to the edit page with the modified content. Display an alert with the error message.
  • Instead of submiting the form with the tradtional post, use JavaScript to save the changes. Once the client side confirms that the page was saved, only then redirect to displaying the page.

I think we could also save the edited page in localstorage, so if the browser crashes, the changes are not lost.

@AustinWise AustinWise added the enhancement New feature or request label Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant