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:
parent
16a1825990
commit
97e7a3c5e2
24 changed files with 749 additions and 374 deletions
|
@ -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 || ''}
|
||||
|
|
|
@ -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'),
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue