-
Notifications
You must be signed in to change notification settings - Fork 43
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
🐛 Decouple form actions from ApplicationForm #1776
Conversation
fd48938
to
8bd5e7e
Compare
client/src/app/pages/applications/components/application-form/application-form.tsx
Outdated
Show resolved
Hide resolved
6d892b9
to
25545b1
Compare
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.
LGTM
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.
Looks ok as-is, but just a thought about how you could manage the buttons from the form itself. Not a blocker.
client/src/app/pages/applications/components/application-form/application-form-modal.tsx
Outdated
Show resolved
Hide resolved
e93423b
to
f727b25
Compare
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.
After looking at what the createPortal-to-a-ref-in-the-Modal-footer would look like, and lots of discussion about it, the current setup is ok with me.
Going forward, we should think about if other tweaks to this approach would be good to apply across all form modals. I'm sure this will not be the last "keep the buttons sticky to the bottom" kind of request we will encounter.
For reference: version that uses portal to display buttons in the parent modal is available here -> rszwajko@ec93ae7 |
Split ApplicationForm into a data hook and view component. Use extracted submit and cancel actions inside Modal's footer. Resolves: konveyor#1708 Signed-off-by: Radoslaw Szwajkowski <[email protected]>
Signed-off-by: Radoslaw Szwajkowski <[email protected]>
f727b25
to
02ff10d
Compare
Split ApplicationForm into a data hook and view component. Use extracted submit and cancel actions inside Modal's footer. Resolves: #1708 --------- Signed-off-by: Radoslaw Szwajkowski <[email protected]> Co-authored-by: Ian Bolton <[email protected]> Signed-off-by: Cherry Picker <[email protected]>
Split ApplicationForm into a data hook and view component. Use extracted submit and cancel actions inside Modal's footer. Resolves: #1708 --------- Signed-off-by: Radoslaw Szwajkowski <[email protected]> Co-authored-by: Ian Bolton <[email protected]> Signed-off-by: Cherry Picker <[email protected]> Signed-off-by: Radoslaw Szwajkowski <[email protected]> Signed-off-by: Cherry Picker <[email protected]> Co-authored-by: Radoslaw Szwajkowski <[email protected]> Co-authored-by: Ian Bolton <[email protected]>
Split ApplicationForm into a data hook and view component. Use extracted submit and cancel actions inside Modal's footer.
Resolves: #1708