Skip to content

Conversation

@artemmufazalov
Copy link
Member

@artemmufazalov artemmufazalov commented Mar 13, 2024

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 Restart button action

@artemmufazalov artemmufazalov marked this pull request as ready for review March 13, 2024 10:18
@artemmufazalov artemmufazalov requested a review from Raubzeug March 13, 2024 10:18
Raubzeug
Raubzeug previously approved these changes Mar 15, 2024
};

return (
<>
Copy link
Contributor

Choose a reason for hiding this comment

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

No need for wrapper

Copy link
Member Author

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

Copy link
Contributor

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);
Copy link
Contributor

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?

Copy link
Member Author

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

@artemmufazalov artemmufazalov merged commit b6bcd68 into main Mar 15, 2024
@artemmufazalov artemmufazalov deleted the fix-tablet-dialog branch March 15, 2024 10:09
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.

Tablet dialog get stuck when not enough rights

3 participants