diff --git a/config-ui/src/plugins/components/scope-config-form/index.tsx b/config-ui/src/plugins/components/scope-config-form/index.tsx index f7f359eb4e8..3e897143e2f 100644 --- a/config-ui/src/plugins/components/scope-config-form/index.tsx +++ b/config-ui/src/plugins/components/scope-config-form/index.tsx @@ -39,6 +39,7 @@ import { TIPS_MAP } from './misc'; interface Props { plugin: string; connectionId: ID; + defaultName?: string; showWarning?: boolean; scopeId?: ID; scopeConfigId?: ID; @@ -49,6 +50,7 @@ interface Props { export const ScopeConfigForm = ({ plugin, connectionId, + defaultName, showWarning = false, scopeId, scopeConfigId, @@ -56,7 +58,7 @@ export const ScopeConfigForm = ({ onSubmit, }: Props) => { const [step, setStep] = useState(1); - const [name, setName] = useState(''); + const [name, setName] = useState(defaultName); const [entities, setEntities] = useState([]); const [transformation, setTransformation] = useState({}); const [hasError, setHasError] = useState(false); diff --git a/config-ui/src/plugins/components/scope-config-select/index.tsx b/config-ui/src/plugins/components/scope-config-select/index.tsx index be1d5cce274..c16538a0ee2 100644 --- a/config-ui/src/plugins/components/scope-config-select/index.tsx +++ b/config-ui/src/plugins/components/scope-config-select/index.tsx @@ -120,6 +120,7 @@ export const ScopeConfigSelect = ({ plugin, connectionId, scopeConfigId, onCance `} showWarning={!!updatedId} scopeConfigId={updatedId} onCancel={handleHideDialog}