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:
Lukas Klingsbo committed 2026-06-28 12:16:05 +02:00
1 parent e0170f7e78
commit 32c762fe74
1 file changed
+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>