From 720ad9a65308f755acba263c094e85aa1d73a847 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Thu, 17 Aug 2023 14:21:36 -0500 Subject: [PATCH] fix(site): avoid showing disabled fields in group settings page (#9154) Previously we allowed interaction with the icon setter and showed confusing help text under the disabled "Display Name" field. --- .../GroupsPage/SettingsGroupPageView.tsx | 44 +++++++++++-------- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/site/src/pages/GroupsPage/SettingsGroupPageView.tsx b/site/src/pages/GroupsPage/SettingsGroupPageView.tsx index b2cff4062b..6c64865d27 100644 --- a/site/src/pages/GroupsPage/SettingsGroupPageView.tsx +++ b/site/src/pages/GroupsPage/SettingsGroupPageView.tsx @@ -57,27 +57,33 @@ const UpdateGroupForm: FC<{ autoFocus fullWidth label="Name" - disabled={group.id === group.organization_id} - /> - - form.setFieldValue("avatar_url", value)} - /> + {isEveryoneGroup(group) ? ( + <> + ) : ( + <> + + form.setFieldValue("avatar_url", value)} + /> + + )}