Skip to content

Commit 5e10a60

Browse files
committed
fix(web): disable environment rename while removing
1 parent 1835385 commit 5e10a60

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎apps/web/src/components/settings/ConnectionsSettings.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,12 @@ function SavedBackendListRow({
14571457
) : null}
14581458
</div>
14591459
<div className="flex w-full shrink-0 items-center gap-2 sm:w-auto sm:justify-end">
1460-
<Button size="xs" variant="outline" onClick={() => onRename(environment)}>
1460+
<Button
1461+
size="xs"
1462+
variant="outline"
1463+
disabled={removingEnvironmentId === environmentId}
1464+
onClick={() => onRename(environment)}
1465+
>
14611466
Rename
14621467
</Button>
14631468
{isWslEnvironment ? (

0 commit comments

Comments
 (0)