From b060bef7461b18eb593bf43c86faeb7749951142 Mon Sep 17 00:00:00 2001 From: Ryan Willis Date: Thu, 11 Jun 2026 23:26:35 -0700 Subject: [PATCH] fix: cloud sync toasts (#10070) (cherry picked from commit b7774b01736f30764289b7e6fb66175df85958c7) --- .../ui/components/dropdowns/sync-dropdown.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/packages/insomnia/src/ui/components/dropdowns/sync-dropdown.tsx b/packages/insomnia/src/ui/components/dropdowns/sync-dropdown.tsx index 5852848592..8f6752fac3 100644 --- a/packages/insomnia/src/ui/components/dropdowns/sync-dropdown.tsx +++ b/packages/insomnia/src/ui/components/dropdowns/sync-dropdown.tsx @@ -108,7 +108,11 @@ export const SyncDropdown: FC = () => { useEffect(() => { if (pushFetcher.data && 'error' in pushFetcher.data && pushFetcher.data.error) { setOperationError(pushFetcher.data.error); - showToast({ icon: cloudSyncIcon, title: `Push failed` }); + showToast({ + icon: cloudSyncIcon, + title: `Push failed`, + status: 'error', + }); } else if (pushFetcher.data && 'success' in pushFetcher.data && pushFetcher.data.success) { showToast({ icon: cloudSyncIcon, @@ -121,7 +125,11 @@ export const SyncDropdown: FC = () => { useEffect(() => { if (pullFetcher.data && 'error' in pullFetcher.data && pullFetcher.data.error) { setOperationError(pullFetcher.data.error); - showToast({ icon: cloudSyncIcon, title: `Pull failed` }); + showToast({ + icon: cloudSyncIcon, + title: `Pull failed`, + status: 'error', + }); } else if (pullFetcher.data && 'success' in pullFetcher.data && pullFetcher.data.success) { showToast({ icon: cloudSyncIcon, @@ -272,11 +280,7 @@ export const SyncDropdown: FC = () => { isDisabled: compare.behind === 0 || pullFetcher.state !== 'idle', action: () => { setOperationError(null); - showToast({ - icon: cloudSyncIcon, - title: `Pull failed`, - status: 'error', - }); + showToast({ icon: cloudSyncIcon, title: `Pull started` }); pullFetcher.submit({ organizationId, projectId,