1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-08 23:35:31 +02:00

fix(edge-stacks): various custom template issues [BE-11414] (#189)

This commit is contained in:
Ali 2024-12-09 17:48:34 +13:00 committed by GitHub
parent 16a1825990
commit 97e7a3c5e2
24 changed files with 749 additions and 374 deletions

View file

@ -78,6 +78,7 @@ export function RelativePathFieldset({
<FormControl
label="Local filesystem path"
errors={errors?.FilesystemPath}
required
>
<Input
name="FilesystemPath"
@ -142,6 +143,7 @@ export function RelativePathFieldset({
<FormControl
label="Local filesystem path"
errors={errors?.FilesystemPath}
required
>
<Input
name="FilesystemPath"
@ -174,6 +176,7 @@ export function RelativePathFieldset({
label="Directory"
errors={errors?.PerDeviceConfigsPath}
inputId="per_device_configs_path_input"
required
>
<PathSelector
value={value.PerDeviceConfigsPath || ''}

View file

@ -13,7 +13,7 @@ export function relativePathValidation(): SchemaOf<RelativePathModel> {
.default(''),
SupportPerDeviceConfigs: boolean().default(false),
PerDeviceConfigsPath: string()
.when(['SupportPerDeviceConfigs'], {
.when('SupportPerDeviceConfigs', {
is: true,
then: string().required('Directory is required'),
})