Skip to content

Use the ModalForm component for Ephemeral IPs#3201

Closed
charliepark wants to merge 1 commit intomainfrom
use_modalform_for_ephemeral_ip
Closed

Use the ModalForm component for Ephemeral IPs#3201
charliepark wants to merge 1 commit intomainfrom
use_modalform_for_ephemeral_ip

Conversation

@charliepark
Copy link
Copy Markdown
Contributor

@charliepark charliepark commented Apr 23, 2026

Currently, our Attach Ephemeral IP modal is using a custom modal component, when we can use the ModalForm component to bring in the benefits of a loading spinner and an error message, like we have on the Attach Floating IP modal.
This builds on #3192, which moved the messages from toasts into the modals.

Screenshot 2026-04-23 at 11 25 31 PM

The spinner is a little high on the button, but that's just because it's hard to capture the moment, and the spinner drops in on the button.
Screenshot 2026-04-23 at 11 28 24 PM

Closes #3197

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
console Ready Ready Preview Apr 23, 2026 9:30pm

Request Review

@charliepark
Copy link
Copy Markdown
Contributor Author

Welp. Looks like this is a dupe of #3200

/** Must be provided with a reason describing why it's disabled */
submitDisabled?: boolean
/** When set, disables the submit button and shows this string as the disabled reason */
submitDisabled?: string
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have this change in mine but I think it might be the right idea. Disabling the button without a message feels kinda junky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Considerable delay on feedback for 'Attach Ephemeral IP' button + not following 'Attach Floating IP' pattern

2 participants