fix(studio): prevent users not permitted or on protected schemas to edit triggers (#41312)

* fix: disable edit trigger button without permission and in protected schemas

* modify edit trigger button disabled style
This commit is contained in:
Marouane Souda authored and GitHub committed 2025-12-16 09:22:38 -07:00
1 parent 5dfe76b52d
commit 78fd7350f9
1 file changed
+2 -1
@@ -99,9 +99,10 @@ export const TriggerList = ({
<TableCell className="space-x-2">
<Button
type="text"
disabled={isLocked || !canUpdateTriggers}
onClick={() => editTrigger(x)}
title={x.name}
className="text-link-table-cell text-left text-sm min-w-0 p-0 hover:bg-transparent font-medium max-w-48 title"
className="text-link-table-cell text-left text-sm disabled:opacity-90 disabled:no-underline min-w-0 p-0 hover:bg-transparent font-medium max-w-48 title"
>
{x.name}
</Button>