Skip to content

Commit 3f65c2d

Browse files
committed
fix(knowledge): show spinner on connector chip while syncing
1 parent e698f9f commit 3f65c2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/sim/app/workspace/[workspaceId]/knowledge/[id]/components/connectors-section/connectors-section.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,13 +306,13 @@ function ConnectorCard({
306306
{Icon && <Icon className='h-5 w-5 flex-shrink-0' />}
307307
<div className='flex flex-col gap-0.5'>
308308
<div className='flex items-center gap-2'>
309-
<span className='font-medium text-[var(--text-primary)] text-small'>
309+
<span className='flex items-center gap-1.5 font-medium text-[var(--text-primary)] text-small'>
310310
{connectorDef?.name || connector.connectorType}
311+
{(syncCooldown || connector.status === 'syncing') && (
312+
<Loader2 className='h-3 w-3 animate-spin text-[var(--text-muted)]' />
313+
)}
311314
</span>
312315
<Badge variant={statusConfig.variant} className='text-micro'>
313-
{connector.status === 'syncing' && (
314-
<Loader2 className='mr-1 h-3 w-3 animate-spin' />
315-
)}
316316
{statusConfig.label}
317317
</Badge>
318318
</div>

0 commit comments

Comments
 (0)