Fix App Import (#9796)
This commit is contained in:
parent
80813f5aa8
commit
b80ed3cfee
|
@ -28,10 +28,10 @@
|
||||||
const validation = createValidationStore()
|
const validation = createValidationStore()
|
||||||
|
|
||||||
$: {
|
$: {
|
||||||
const { name, url } = $values
|
const { url } = $values
|
||||||
|
|
||||||
validation.check({
|
validation.check({
|
||||||
name,
|
...$values,
|
||||||
url: url?.[0] === "/" ? url.substring(1, url.length) : url,
|
url: url?.[0] === "/" ? url.substring(1, url.length) : url,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -95,9 +95,9 @@
|
||||||
appValidation.url(validation, { apps: applications })
|
appValidation.url(validation, { apps: applications })
|
||||||
appValidation.file(validation, { template })
|
appValidation.file(validation, { template })
|
||||||
// init validation
|
// init validation
|
||||||
const { name, url } = $values
|
const { url } = $values
|
||||||
validation.check({
|
validation.check({
|
||||||
name,
|
...$values,
|
||||||
url: url?.[0] === "/" ? url.substring(1, url.length) : url,
|
url: url?.[0] === "/" ? url.substring(1, url.length) : url,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,10 +24,10 @@
|
||||||
const validation = createValidationStore()
|
const validation = createValidationStore()
|
||||||
|
|
||||||
$: {
|
$: {
|
||||||
const { name, url } = $values
|
const { url } = $values
|
||||||
|
|
||||||
validation.check({
|
validation.check({
|
||||||
name,
|
...$values,
|
||||||
url: url?.[0] === "/" ? url.substring(1, url.length) : url,
|
url: url?.[0] === "/" ? url.substring(1, url.length) : url,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -37,9 +37,9 @@
|
||||||
appValidation.name(validation, { apps: applications, currentApp: app })
|
appValidation.name(validation, { apps: applications, currentApp: app })
|
||||||
appValidation.url(validation, { apps: applications, currentApp: app })
|
appValidation.url(validation, { apps: applications, currentApp: app })
|
||||||
// init validation
|
// init validation
|
||||||
const { name, url } = $values
|
const { url } = $values
|
||||||
validation.check({
|
validation.check({
|
||||||
name,
|
...$values,
|
||||||
url: url?.[0] === "/" ? url.substring(1, url.length) : url,
|
url: url?.[0] === "/" ? url.substring(1, url.length) : url,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue