From d306ebc2dff2c6a00fda260ab6d6ca5ebc205178 Mon Sep 17 00:00:00 2001 From: Curry Yang <163384738+CurryYangxx@users.noreply.github.com> Date: Thu, 18 Jul 2024 21:28:57 +0800 Subject: [PATCH] fix: syncing status indicator ui (#7730) --- .../insomnia/src/ui/routes/organization.tsx | 84 +++++++++---------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/packages/insomnia/src/ui/routes/organization.tsx b/packages/insomnia/src/ui/routes/organization.tsx index 755389a16c..b901e9a999 100644 --- a/packages/insomnia/src/ui/routes/organization.tsx +++ b/packages/insomnia/src/ui/routes/organization.tsx @@ -249,9 +249,9 @@ async function migrateProjectsUnderOrganization(personalOrganizationId: string, async function syncStorageRule(sessionId: string, organizationId: string) { try { const storageRule = await insomniaFetch({ - method: 'GET', - path: `/v1/organizations/${organizationId}/storage-rule`, - sessionId, + method: 'GET', + path: `/v1/organizations/${organizationId}/storage-rule`, + sessionId, }); invariant(storageRule, 'Failed to load storageRule'); @@ -957,14 +957,14 @@ const OrganizationRoute = () => { {status === 'online' && asyncTaskStatus !== 'idle' ? ( @@ -978,43 +978,43 @@ const OrganizationRoute = () => { ) : ( - - - {user - ? status === 'online' ? 'You have connectivity to the Internet' + (settings.proxyEnabled ? ' via the configured proxy' : '') + '.' - : 'You are offline. Connect to sync your data.' - : 'Log in to Insomnia to unlock the full product experience.'} - - + + + {user + ? status === 'online' ? 'You have connectivity to the Internet' + (settings.proxyEnabled ? ' via the configured proxy' : '') + '.' + : 'You are offline. Connect to sync your data.' + : 'Log in to Insomnia to unlock the full product experience.'} + + )}