feat: allow backend to rename field of custom object (#4097)
* feat: allow backend to rename field of custom object * feat: allow custom field label edition in Settings Closes #4080 * fix: avoid renaming standard fields --------- Co-authored-by: Thaïs Guigon <guigon.thais@gmail.com>
This commit is contained in:
@ -9,7 +9,6 @@ import { Section } from '@/ui/layout/section/components/Section';
|
||||
|
||||
type SettingsObjectFieldFormSectionProps = {
|
||||
disabled?: boolean;
|
||||
disableNameEdition?: boolean;
|
||||
name?: string;
|
||||
description?: string;
|
||||
iconKey?: string;
|
||||
@ -31,7 +30,6 @@ const StyledInputsContainer = styled.div`
|
||||
|
||||
export const SettingsObjectFieldFormSection = ({
|
||||
disabled,
|
||||
disableNameEdition,
|
||||
name = '',
|
||||
description = '',
|
||||
iconKey = 'IconUsers',
|
||||
@ -57,7 +55,7 @@ export const SettingsObjectFieldFormSection = ({
|
||||
onChange?.({ label: value });
|
||||
}
|
||||
}}
|
||||
disabled={disabled || disableNameEdition}
|
||||
disabled={disabled}
|
||||
fullWidth
|
||||
/>
|
||||
</StyledInputsContainer>
|
||||
|
||||
Reference in New Issue
Block a user