-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix: "Use All" for linear image to image doesn't recall source image #6141
Conversation
invokeai/frontend/web/src/features/parameters/types/parameterSchemas.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Couple issues to fix before merging.
Retrieving the DTO happens as part of the metadata parsing, not recall. This way, we don't show the option to recall a nonexistent image. This matches the flow for other metadata entities like models - we don't show the model recall button if the model isn't available.
f72bd5e
to
eecb088
Compare
I made a small change to improve the UX. I moved the image network request to the parsing logic. The parsing logic is intended to handle "does this metadata exist and is it valid?". Retrieving the DTO is part of that logic. Then the recall logic knows it has valid data, and it can update state immediately. If the parsing fails, the recall button won't be shown at all, so we avoid the awkward UX of "I pressed recall but there was an error". |
Summary
Related Issues / Discussions
Closed #6130
QA Instructions
Merge Plan
Checklist