From 7435f8f863ff94834d7188772547cfb0cd4ba1d4 Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Wed, 2 Mar 2022 17:22:22 -0500 Subject: [PATCH] 18559: Disable user profile form fields when not admin or self Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- src/components/select-field/select-field.tsx | 10 +- .../user-profile-panel-root.tsx | 174 +++++++++--------- .../user-profile-panel/user-profile-panel.tsx | 3 +- 3 files changed, 98 insertions(+), 89 deletions(-) diff --git a/src/components/select-field/select-field.tsx b/src/components/select-field/select-field.tsx index e4dcad6c..6fa7ddea 100644 --- a/src/components/select-field/select-field.tsx +++ b/src/components/select-field/select-field.tsx @@ -35,14 +35,18 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ } }); +interface NativeSelectFieldProps { + disabled?: boolean; +} + export const NativeSelectField = withStyles(styles) - ((props: WrappedFieldProps & WithStyles & { items: any[] }) => + ((props: WrappedFieldProps & NativeSelectFieldProps & WithStyles & { items: any[] }) =>