From 1fbe84459829b78dd83b663463679b3bd83ee2c9 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 10 Sep 2026 18:13:56 +0200 Subject: [PATCH] fix(settings): move board access control out of the nested form (#6662) --- .../boards/[name]/settings/_settings-form.tsx | 54 ++++++++++--------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/apps/nextjs/src/app/[locale]/boards/[name]/settings/_settings-form.tsx b/apps/nextjs/src/app/[locale]/boards/[name]/settings/_settings-form.tsx index b8e66cf4b..c27f77c71 100644 --- a/apps/nextjs/src/app/[locale]/boards/[name]/settings/_settings-form.tsx +++ b/apps/nextjs/src/app/[locale]/boards/[name]/settings/_settings-form.tsx @@ -178,35 +178,37 @@ export const BoardSettingsForm = ({ board, permissions, hasFullAccess, hideVisib const isPending = savePartialSettings.isPending || saveLayouts.isPending; return ( -
void handleSubmitAsync(values))}> - - - - - - - + + void handleSubmitAsync(values))}> + + + + + + + - {hasFullAccess && ( - - - - )} + {form.isDirty() && ( + + + + + )} + + - {hasFullAccess && } + {hasFullAccess && ( + + + + )} - {form.isDirty() && ( - - - - - )} - - + {hasFullAccess && } +
); };