Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Nov 2, 2024
1 parent 57ff581 commit 27bcfe7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
8 changes: 6 additions & 2 deletions web/src/app/admin/documents/sets/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,17 @@ const DocumentSetTable = ({
</TableCell>
<TableCell>
{documentSet.is_public ? (
<Badge size="md" variant="success" icon={FiUnlock}>
<Badge
size="md"
variant={isEditable ? "success" : "default"}
icon={FiUnlock}
>
Public
</Badge>
) : (
<Badge
size="md"
variant={isEditable ? "purple" : "outline"}
variant={isEditable ? "in_progress" : "outline"}
icon={FiLock}
>
Private
Expand Down
10 changes: 6 additions & 4 deletions web/src/app/admin/indexing/status/CCPairIndexingStatusTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,19 +201,21 @@ function ConnectorRow({
{isPaidEnterpriseFeaturesEnabled && (
<TableCell>
{ccPairsIndexingStatus.access_type === "public" ? (
<Badge variant="success" icon={FiUnlock}>
<Badge variant={isEditable ? "success" : "default"} icon={FiUnlock}>
Public
</Badge>
) : ccPairsIndexingStatus.access_type === "sync" ? (
<Badge
variant="outline"
color={isEditable ? "orange" : "gray"}
variant={isEditable ? "orange" : "default"}
icon={FiRefreshCw}
>
Sync
</Badge>
) : (
<Badge variant="in_progress" icon={FiLock}>
<Badge
variant={isEditable ? "in_progress" : "default"}
icon={FiLock}
>
Private
</Badge>
)}
Expand Down

0 comments on commit 27bcfe7

Please sign in to comment.