Skip to content

Commit

Permalink
Bring back edit permission button (#9253)
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas <[email protected]>
  • Loading branch information
overmode and overmode authored Dec 10, 2024
1 parent e55b115 commit 3d7a686
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions front/components/ConnectorPermissionsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -757,21 +757,21 @@ export function ConnectorPermissionsModal({
>
<div className="mx-auto mt-4 flex w-full max-w-4xl grow flex-col gap-4">
<div className="flex flex-row justify-end gap-2">
{isOAuthProvider(connector.type) ||
(connector.type === "snowflake" && (
<Button
label={
connector.type !== "snowflake"
? "Edit permissions"
: "Edit connection"
}
variant="outline"
icon={LockIcon}
onClick={() => {
setModalToShow("edition");
}}
/>
))}
{(isOAuthProvider(connector.type) ||
connector.type === "snowflake") && (
<Button
label={
connector.type !== "snowflake"
? "Edit permissions"
: "Edit connection"
}
variant="outline"
icon={LockIcon}
onClick={() => {
setModalToShow("edition");
}}
/>
)}
{MANAGED_DS_DELETABLE.includes(connector.type) && (
<Button
label="Delete connection"
Expand Down

0 comments on commit 3d7a686

Please sign in to comment.