- {i18n.translate('workspace.form.workspaceDetails.color.helpText', {
- defaultMessage: 'Accent color for your workspace',
+ {i18n.translate('workspace.form.workspaceDetails.color.description', {
+ defaultMessage: 'Select a background color for the icon representing this workspace.',
})}
diff --git a/src/plugins/workspace/public/components/workspace_form/workspace_form.tsx b/src/plugins/workspace/public/components/workspace_form/workspace_form.tsx
index 70d2a34d7585..e8cfd534d922 100644
--- a/src/plugins/workspace/public/components/workspace_form/workspace_form.tsx
+++ b/src/plugins/workspace/public/components/workspace_form/workspace_form.tsx
@@ -39,13 +39,13 @@ export const WorkspaceForm = (props: WorkspaceFormProps) => {
formErrors,
numberOfErrors,
numberOfChanges,
+ setName,
+ setDescription,
handleFormSubmit,
handleColorChange,
handleUseCaseChange,
- handleNameInputChange,
setPermissionSettings,
setSelectedDataSources,
- handleDescriptionChange,
} = useWorkspaceForm(props);
const disabledUserOrGroupInputIdsRef = useRef(
@@ -73,9 +73,9 @@ export const WorkspaceForm = (props: WorkspaceFormProps) => {
description={formData.description}
color={formData.color}
readOnly={!!defaultValues?.reserved}
- handleNameInputChange={handleNameInputChange}
- handleDescriptionChange={handleDescriptionChange}
handleColorChange={handleColorChange}
+ onNameChange={setName}
+ onDescriptionChange={setDescription}
/>
@@ -128,7 +128,7 @@ export const WorkspaceForm = (props: WorkspaceFormProps) => {
)}
{operationType === WorkspaceOperationType.Create && (
-
+
)}
{operationType === WorkspaceOperationType.Update && (