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

Rebuild gallery edit using formik #1654

Merged
merged 3 commits into from
Aug 24, 2021

Conversation

gitgiggety
Copy link
Contributor

@gitgiggety gitgiggety commented Aug 20, 2021

  • Prompt on page leave when changes are not saved
  • Fixes missing required validation
  • Only enables save when changes are made
  • Wrap in (not sure if this does anything)

I hope I didn't break anything related to stashbox :)

Found one smallish issue, but this exists for scenes as well. If you make edits but don't save, and afterwards use delete, the "Unsaved changes. Are you sure you want to leave?" confirmation is shown. This obviously because after the delete the page is redirected, while the form is also "dirty" which thus triggers the notification. But I'm unsure how to fix this, so suggestions welcome (or just merge because the same issue exists in other places as well :))

* Prompt on page leave when changes are not saved
* Fixes missing required validation
* Only enables save when changes are made
* Wrap in <Form onSubmit> (not sure if this does anything)
@WithoutPants WithoutPants added the improvement Something needed tweaking. label Aug 24, 2021
@WithoutPants WithoutPants added this to the Version 0.9.0 milestone Aug 24, 2021
@WithoutPants WithoutPants merged commit 392fa35 into stashapp:develop Aug 24, 2021
@gitgiggety gitgiggety deleted the gallery-formik branch August 24, 2021 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Something needed tweaking.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants