Overwrite standard translations (#11134)

Manage overwriting translations for standard fields and standard objects
properties
This commit is contained in:
Félix Malfait
2025-03-25 22:17:29 +01:00
committed by GitHub
parent 7a7003d859
commit 6ec06be18d
13 changed files with 1809 additions and 122 deletions

View File

@ -105,7 +105,6 @@ export const SettingsDataModelFieldIconLabelForm = ({
const fillNameFromLabel = (label: string) => {
isDefined(label) &&
fieldMetadataItem?.isCustom &&
setValue('name', computeMetadataNameFromLabel(label), {
shouldDirty: true,
});
@ -141,7 +140,11 @@ export const SettingsDataModelFieldIconLabelForm = ({
}
}}
error={getErrorMessageFromError(errors.label?.message)}
disabled={isLabelSyncedWithName === true}
disabled={
isLabelSyncedWithName === true &&
fieldMetadataItem &&
!fieldMetadataItem?.isCustom
}
maxLength={maxLength}
fullWidth
/>