mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
[dashboard] fix: auth policies button (#28499)
* Update GridHeaderActions.tsx * Update GridHeaderActions.tsx
This commit is contained in:
1 parent
77bc1a4d8b
commit
14618ec41f
1 file changed
+12
-4
@@ -21,7 +21,7 @@ import useEntityType from 'hooks/misc/useEntityType'
|
||||
import { useIsFeatureEnabled } from 'hooks/misc/useIsFeatureEnabled'
|
||||
import { TableLike } from 'hooks/misc/useTable'
|
||||
import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'
|
||||
import { Button, PopoverContent_Shadcn_, PopoverTrigger_Shadcn_, Popover_Shadcn_ } from 'ui'
|
||||
import { Button, PopoverContent_Shadcn_, PopoverTrigger_Shadcn_, Popover_Shadcn_, cn } from 'ui'
|
||||
import ConfirmModal from 'ui-patterns/Dialogs/ConfirmDialog'
|
||||
import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'
|
||||
import { RoleImpersonationPopover } from '../RoleImpersonationSelector'
|
||||
@@ -228,9 +228,17 @@ const GridHeaderActions = ({ table }: GridHeaderActionsProps) => {
|
||||
className="group"
|
||||
icon={
|
||||
isLocked || policies.length > 0 ? (
|
||||
<span className="text-right text-xs rounded-xl px-[6px] bg-foreground-lighter/30 text-brand-1100">
|
||||
{policies.length}
|
||||
</span>
|
||||
<div
|
||||
className={cn(
|
||||
'flex items-center justify-center rounded-full bg-border-stronger h-[16px]',
|
||||
policies.length > 9 ? ' px-1' : 'w-[16px]',
|
||||
''
|
||||
)}
|
||||
>
|
||||
<span className="text-[11px] text-foreground font-mono text-center">
|
||||
{policies.length}
|
||||
</span>
|
||||
</div>
|
||||
) : (
|
||||
<PlusCircle strokeWidth={1.5} />
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user