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();
|
||||
|
||||
return (
|
||||
<>
|
||||
<InputGroup size="small" className="col-sm-5">
|
||||
<div className="relative flex flex-col">
|
||||
<InputGroup size="small">
|
||||
<InputGroup.Addon>path</InputGroup.Addon>
|
||||
<InputGroup.Input
|
||||
mRef={ref}
|
||||
|
@ -50,7 +50,11 @@ function Item({
|
|||
}}
|
||||
/>
|
||||
</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(
|
||||
'Compose file path is required'
|
||||
),
|
||||
AdditionalFiles: array(string().required()).default([]),
|
||||
AdditionalFiles: array(string().required('Path is required')).default([]),
|
||||
RepositoryURLValid: boolean().default(false),
|
||||
AutoUpdate: autoUpdateValidation().nullable(),
|
||||
}).concat(gitAuthValidation(gitCredentials));
|
||||
|
|
Loading…
Reference in New Issue