-
Notifications
You must be signed in to change notification settings - Fork 17
fix(Tablet): correctly process error in dialog action #758
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
Conversation
031006a to
d911886
Compare
| }; | ||
|
|
||
| return ( | ||
| <> |
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.
No need for wrapper
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.
It contains two components CriticalActionDialog and Button
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.
oops, overlooked
| const [buttonLoading, setButtonLoading] = useState(false); | ||
|
|
||
| const handleConfirmAction = () => { | ||
| setButtonLoading(true); |
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.
What if no onConfirmActionSuccess is passed and handleConfirmActionError didn't fired?
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.
Thanks, in this case button in infinite loading state, I will fix it
d911886 to
1700640
Compare
Closes #728
Test stand (normal behaviour): https://nda.ya.ru/t/fDzumJa_74xcbY
Test stand (error behaviour): https://nda.ya.ru/t/NZOSqOgA74xcn9
How to check: run
Restartbutton action