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

feat: allow loading and disable state for confirm button in ConfirmationModal #1075

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

mas-who
Copy link
Contributor

@mas-who mas-who commented Apr 22, 2024

Done

  • Allow loading state for the confirm button in the modal
  • Allow disabled state for the confirm button in the modal

@webteam-app
Copy link

Copy link
Contributor

@edlerd edlerd left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for adding this. One suggestion to make the naming more consistent with existing components.

Comment on lines 37 to 41
confirmButtonLoading?: boolean;
/**
* Disable the confirm button.
*/
confirmButtonDisabled?: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe both can be loading and disabled to stay in line with how the action button component calls them? Or do you think those will be too ambiguous?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I think it might be a little ambiguous since there are two buttons?

…ionModal

Signed-off-by: Mason Hu <mason.hu@canonical.com>
@mas-who mas-who force-pushed the confirm-modal-loading-and-disable branch from 90434a2 to bad3afa Compare April 22, 2024 09:07
@mas-who mas-who merged commit b6067ee into canonical:main Apr 22, 2024
8 of 11 checks passed
Copy link

🎉 This PR is included in version 0.52.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

4 participants