-
-
Notifications
You must be signed in to change notification settings - Fork 784
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
[v1.0.0b] - Closing a recipe from edit shows cached recipe initially #2268
Comments
hi! i'd like to tackle this issue. The expected behaviour is not clear to me, should you prompt the user to save the changes when clicking the close button (like when you attempt to close the tab with unsaved changes)? or should it just close it and display the previous un-changed recipe? |
There is already a prompt to save changes. The issue is that if you select the option to not save changes, the UI will show the changes you made (as if you DID save). |
Actually, I take that back.. There is no prompt about saving. |
Yes we agree on that, my question is wether the correct behaviour is to just close the edit page (this would require me to fix the issue of the recipe not going back to its original state) or to prompt the user to save (while also fixing the issue if the user chooses not to save) |
@michael-genson / @hay-kot may have some input from a design perspective on that. |
Fully agree. FYI for @eliasvelardezft (or anyone tackling the issue) you probably want to copy the existing recipe into a temporary ref, then emit the changes so the recipe actually updates. I had to tackle a similar issue in #1912:
(Or however you want to fix it really :) ) |
First Check
What is the issue you are experiencing?
When editing a recipe, and clicking Close (not saving changes), it shows you the recipe with all the changes you made. Hitting refresh updates it back to the actual recipe without all the changes. Just a visual bug.
Deployment
Docker (Linux)
Deployment Details
No response
The text was updated successfully, but these errors were encountered: