Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const connectionErrorActionsStyles = css({
const connectionErrorStyles = css({
display: 'flex',
flexDirection: 'column',
wordBreak: 'break-word',
});

const connectionErrorTitleStyles = css({
Expand Down Expand Up @@ -201,16 +202,15 @@ const openConnectionFailedToast = ({
onReview={
onReviewClick
? () => {
if (!onDebugClick) {
// don't close the toast if there are two actions so that the user
// can still use the other one
closeToast(`connection-status--${failedToastId}`);
}
closeToast(`connection-status--${failedToastId}`);
onReviewClick();
}
: undefined
}
onDebug={onDebugClick}
onDebug={() => {
closeToast(`connection-status--${failedToastId}`);
onDebugClick?.();
}}
/>
),
variant: 'warning',
Expand Down
Loading