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: Add prop to disable close button #416

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ke1sy
Copy link

@Ke1sy Ke1sy commented Apr 24, 2024

I added a new prop disableCloseBtn that allows to disable the close button.

Related issue: #417

This prop is useful when the content inside dialog includes long-running API call that is made upon clicking the “ok” button and need to prevent the user from closing the modal while the API call is still pending.
Currently there is no way to disable button while the API is still in flight.

Ref: UIEN-5893

Copy link

vercel bot commented Apr 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dialog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 29, 2024 6:49am

@Ke1sy Ke1sy changed the title Add prop to disable close button Feat: Add prop to disable close button Apr 24, 2024
@Ke1sy
Copy link
Author

Ke1sy commented Apr 24, 2024

@yoyo837 @zombieJ @MadCcc Please review. Thanks!

README.md Outdated Show resolved Hide resolved
Copy link

codecov bot commented Apr 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.43%. Comparing base (a55e825) to head (18884a1).
Report is 1 commits behind head on master.

❗ Current head 18884a1 differs from pull request most recent head e6f8250. Consider uploading reports for the commit e6f8250 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #416   +/-   ##
=======================================
  Coverage   99.43%   99.43%           
=======================================
  Files           8        8           
  Lines         178      178           
  Branches       54       54           
=======================================
  Hits          177      177           
  Misses          1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mellis481
Copy link
Contributor

@yoyo837 @zombieJ @MadCcc Bump

@yoyo837 yoyo837 requested a review from afc163 May 6, 2024 13:26
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.

None yet

3 participants