mirror of https://github.com/portainer/portainer
fix(git): fix more files form error [EE-5125] (#8601)
parent
e3299eddd5
commit
5f0af62521
|
@ -35,8 +35,8 @@ function Item({
|
||||||
const { ref, updateCaret } = useCaretPosition();
|
const { ref, updateCaret } = useCaretPosition();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<div className="relative flex flex-col">
|
||||||
<InputGroup size="small" className="col-sm-5">
|
<InputGroup size="small">
|
||||||
<InputGroup.Addon>path</InputGroup.Addon>
|
<InputGroup.Addon>path</InputGroup.Addon>
|
||||||
<InputGroup.Input
|
<InputGroup.Input
|
||||||
mRef={ref}
|
mRef={ref}
|
||||||
|
@ -50,7 +50,11 @@ function Item({
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</InputGroup>
|
</InputGroup>
|
||||||
{error && <FormError>{error}</FormError>}
|
{error && (
|
||||||
</>
|
<div className="absolute -bottom-7">
|
||||||
|
<FormError>{error}</FormError>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -133,7 +133,7 @@ export function buildGitValidationSchema(
|
||||||
ComposeFilePathInRepository: string().required(
|
ComposeFilePathInRepository: string().required(
|
||||||
'Compose file path is required'
|
'Compose file path is required'
|
||||||
),
|
),
|
||||||
AdditionalFiles: array(string().required()).default([]),
|
AdditionalFiles: array(string().required('Path is required')).default([]),
|
||||||
RepositoryURLValid: boolean().default(false),
|
RepositoryURLValid: boolean().default(false),
|
||||||
AutoUpdate: autoUpdateValidation().nullable(),
|
AutoUpdate: autoUpdateValidation().nullable(),
|
||||||
}).concat(gitAuthValidation(gitCredentials));
|
}).concat(gitAuthValidation(gitCredentials));
|
||||||
|
|
Loading…
Reference in New Issue