Skip to content

Commit

Permalink
Merge pull request #1509 from deepfence/ui-v2-registry-sync-images
Browse files Browse the repository at this point in the history
added sync column
  • Loading branch information
milan-deepfence authored Sep 11, 2023
2 parents 0a60bef + 3e127f0 commit 54a1fd7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useSuspenseQuery } from '@suspensive/react-query';
import { useMemo, useState } from 'react';
import { generatePath, useParams } from 'react-router-dom';
import {
CircleSpinner,
createColumnHelper,
Dropdown,
DropdownItem,
Expand Down Expand Up @@ -175,6 +176,24 @@ export const RegistryAccountsTable = ({
size: 110,
maxSize: 120,
}),
columnHelper.accessor('is_syncing', {
header: () => 'Sync Status',
cell: (info) => (
<>
{info.getValue() === true ? (
<span className="flex items-center gap-1.5 dark:text-text-text-and-icon text-p4">
<CircleSpinner size="sm" />
Syncing
</span>
) : (
'Ready to scan'
)}
</>
),
minSize: 100,
size: 110,
maxSize: 120,
}),
columnHelper.accessor('created_at', {
enableSorting: true,
header: () => 'Created',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ const contentCva = cva(
'text-p1 dark:text-text-text-and-icon',
// padding
'px-5',
{
'animate-modal-slide-in': open,
// 'animate-pop-out': !open,
},
),
],
{
Expand All @@ -117,7 +113,8 @@ const contentCva = cva(
xxl: 'w-[800px]',
},
open: {
true: '',
true: 'animate-modal-slide-in',
// false: 'animate-pop-out',
},
},
defaultVariants: {
Expand Down

0 comments on commit 54a1fd7

Please sign in to comment.