1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-20 22:09:41 +02:00

fix(edge/aeec): make edge id generator field mandatory EE-6010 (#10545)

This commit is contained in:
matias-portainer 2023-10-27 10:35:10 -03:00 committed by GitHub
parent 9e60723e4d
commit f10356641a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 3 deletions

View file

@ -24,7 +24,8 @@ export function EdgeScriptSettingsFieldset({
hideIdGetter,
showMetaFields,
}: Props) {
const { values, setFieldValue } = useFormikContext<ScriptFormValues>();
const { values, setFieldValue, errors } =
useFormikContext<ScriptFormValues>();
return (
<>
@ -50,8 +51,10 @@ export function EdgeScriptSettingsFieldset({
<>
<FormControl
label="Edge ID Generator"
tooltip="A bash script one liner that will generate the edge id and will be assigned to the PORTAINER_EDGE_ID environment variable"
tooltip="Enter a single-line bash command that generates a unique Edge ID. For example, you can use 'uuidgen' or 'uuid'. The result will be assigned to the 'PORTAINER_EDGE_ID' environment variable."
inputId="edge-id-generator-input"
required
errors={errors.edgeIdGenerator}
>
<Input
type="text"