Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Added documentation link in storage policies (#18284)

Abhijeet Biswal1a8be4ac9664
diff --git a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js
index 11af6aaf5c3..848798821ba 100644
--- a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js
+++ b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js
@@ -1,4 +1,4 @@
-import { Badge, Button, Checkbox, Modal } from 'ui'
+import { Badge, Button, Checkbox, IconExternalLink, Modal } from 'ui'
import { PolicyName, PolicyRoles } from 'components/interfaces/Auth/Policies/PolicyEditor'
import SqlEditor from 'components/ui/SqlEditor'
@@ -83,12 +83,23 @@ const PolicyAllowedOperations = ({ allowedOperations = [], onToggleOperation = (
const PolicyEditorFooter = ({ onViewTemplates = () => {}, onReviewPolicy = () => {} }) => (
<div className="flex w-full items-center justify-end space-x-4 border-t px-6 py-3 dark:border-dark">
- <Button type="default" onClick={onViewTemplates}>
- View templates
- </Button>
- <Button type="primary" onClick={onReviewPolicy}>
- Review
+ <Button asChild type="link" icon={<IconExternalLink size={14} strokeWidth={1.5} />}>
+ <a
+ href="https://supabase.com/docs/guides/storage/access-control"
+ target="_blank"
+ rel="noreferrer"
+ >
+ Documentation
+ </a>
</Button>
+ <div className="flex w-full items-center justify-end gap-2">
+ <Button type="default" onClick={onViewTemplates}>
+ View templates
+ </Button>
+ <Button type="primary" onClick={onReviewPolicy}>
+ Review
+ </Button>
+ </div>
</div>
)