mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 19:35:06 +03:00
fix(studio): allow setting commentOnNoChanges toggle during connection creation
Mirror the create/update permission split used by the repository field so a user who can create but not update a connection can still set this toggle during setup.
This commit is contained in:
1 file changed
+4
-1
+4
-1
@@ -474,7 +474,10 @@ export const GitHubIntegrationConnectionForm = ({
|
||||
<Switch
|
||||
checked={field.value}
|
||||
onCheckedChange={field.onChange}
|
||||
disabled={!canUpdateGitHubConnection}
|
||||
disabled={
|
||||
(!connection && !canCreateGitHubConnection) ||
|
||||
(connection && !canUpdateGitHubConnection)
|
||||
}
|
||||
/>
|
||||
</FormControl>
|
||||
</FormItemLayout>
|
||||
|
||||
Reference in new issue
Block a user