mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-16 14:50:15 +08:00
dbeaver/pro#9957 add labels to ai profile form (#4516)
Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
This commit is contained in:
+9
-2
@@ -42,15 +42,22 @@ export const AIProfileFormPanel = observer<IAIProfileFormProps>(function AIProfi
|
||||
},
|
||||
});
|
||||
|
||||
const label = translate(creating ? 'plugin_ai_administration_profile_create' : 'plugin_ai_administration_profile_edit');
|
||||
|
||||
return (
|
||||
<Form context={form} contents>
|
||||
<TabsState container={aiProfileFormService.parts} localState={formState.parts} formState={formState}>
|
||||
<div className="tw:flex tw:flex-col tw:flex-1 tw:h-full tw:overflow-auto theme-background-secondary theme-text-on-secondary">
|
||||
<div
|
||||
aria-label={label}
|
||||
className="tw:flex tw:flex-col tw:flex-1 tw:h-full tw:overflow-auto theme-background-secondary theme-text-on-secondary"
|
||||
>
|
||||
<div className="tw:relative tw:flex tw:items-end tw:border-b-2 theme-border-color-background theme-background-secondary theme-text-on-secondary">
|
||||
<div className="tw:flex-1 tw:overflow-hidden tw:pt-2 tw:pl-2">
|
||||
<GroupTitle header>
|
||||
<GroupBack onClick={() => aiProfileFormService.close()}>
|
||||
<Text truncate>{formState.state.name || translate('ui_stepper_back')}</Text>
|
||||
<Text truncate>
|
||||
{creating ? translate('plugin_ai_administration_profile_create') : `${translate('ui_edit')} "${formState.state.name}"`}
|
||||
</Text>
|
||||
</GroupBack>
|
||||
</GroupTitle>
|
||||
<div className="tw:p-2">
|
||||
|
||||
@@ -47,4 +47,6 @@ export default [
|
||||
'plugin_ai_administration_profile_default_delete_info',
|
||||
'Das Standardprofil kann nicht gelöscht werden. Bitte wählen Sie ein anderes Profil als Standard aus, bevor Sie dieses Profil löschen.',
|
||||
],
|
||||
['plugin_ai_administration_profile_create', 'Neues Profil'],
|
||||
['plugin_ai_administration_profile_edit', 'Profil bearbeiten'],
|
||||
];
|
||||
|
||||
@@ -47,4 +47,6 @@ export default [
|
||||
'plugin_ai_administration_profile_default_delete_info',
|
||||
'The default profile cannot be deleted. Please select another profile as the default before deleting this profile.',
|
||||
],
|
||||
['plugin_ai_administration_profile_create', 'New Profile'],
|
||||
['plugin_ai_administration_profile_edit', 'Edit Profile'],
|
||||
];
|
||||
|
||||
@@ -47,4 +47,6 @@ export default [
|
||||
'plugin_ai_administration_profile_default_delete_info',
|
||||
'Le profil par défaut ne peut pas être supprimé. Veuillez sélectionner un autre profil comme profil par défaut avant de supprimer ce profil.',
|
||||
],
|
||||
['plugin_ai_administration_profile_create', 'Nouveau profil'],
|
||||
['plugin_ai_administration_profile_edit', 'Modifier le profil'],
|
||||
];
|
||||
|
||||
@@ -47,4 +47,6 @@ export default [
|
||||
'plugin_ai_administration_profile_default_delete_info',
|
||||
'Профиль по умолчанию нельзя удалить. Перед удалением этого профиля выберите другой профиль по умолчанию.',
|
||||
],
|
||||
['plugin_ai_administration_profile_create', 'Новый профиль'],
|
||||
['plugin_ai_administration_profile_edit', 'Редактировать профиль'],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user