The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add a link to the RLS settings page when RLS is enabled
Terry Suttonf4a5314f6e1f
diff --git a/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx b/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsxindex 96f1d3a6311..d6aa813cbdb 100644--- a/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx+++ b/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx@@ -1,6 +1,6 @@import { FC } from 'react'import Link from 'next/link'-import { Badge, Button, IconAlertCircle, Typography } from '@supabase/ui'+import { Button, IconAlertCircle, IconLock } from '@supabase/ui'import { PostgresTable } from '@supabase/postgres-meta'import { useStore } from 'hooks'@@ -16,18 +16,13 @@ const GridHeaderActions: FC<Props> = ({ table }) => {return (<div className="space-x-3 flex items-center">- {!table.rls_enabled && (- <Link href={urlToRLSPolicies}>- <Button type="warning" icon={<IconAlertCircle strokeWidth={2} size={14} />}>- RLS not enabled+ <Link href={urlToRLSPolicies}>+ <Button+ type={table.rls_enabled ? 'link' : 'warning'}+ icon={table.rls_enabled ? <IconLock strokeWidth={2} size={14} /> : <IconAlertCircle strokeWidth={2} size={14} />}>+ RLS {table.rls_enabled ? 'is' : 'not'} enabled</Button>- </Link>- )}- {/* <Button type="text">- <Typography.Text small code>- Shortcuts- </Typography.Text>- </Button> */}+ </Link></div>)}