Disable reset button after confirmation (#2537)
Currently, after confirming the reset, there is no feedback in the
dialog to indicate that the operation has started, which makes it appear
as if the button is not working.
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2537"
target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open with Devin">
</picture>
</a>
<!-- devin-review-badge-end -->
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Disable the reset confirmation button after confirmation and show
“Resetting…” to give clear feedback and prevent duplicate resets.
- **Bug Fixes**
- ConfirmationDialog: added confirmDisabled prop to control disabled
state and styling.
- Settings: when isResetting is true, disable confirm button and set
text to “Resetting…”.
<sup>Written for commit 02397273dcf8e04ae7b8b39fea2f58b767edc6b6.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
正在显示
请
注册
或者
登录
后发表评论