add death to admin ui
All checks were successful
deploy / build-and-deploy (/testvaro, /opt/website-test, website-test) (push) Successful in 14s
deploy / build-and-deploy (/varo, /opt/website, website) (push) Successful in 14s

This commit is contained in:
2025-06-25 16:08:03 +02:00
parent 7a0db65f78
commit 6789a65285
12 changed files with 296 additions and 9 deletions

View File

@@ -111,11 +111,11 @@
submitEnabled = false;
for (const key of keys) {
for (const k of key) {
if (k.options?.required) {
if (k.options?.validate) {
if (k.options?.validate) {
if (k.options?.required && !target[k.key]) {
return;
} else if (k.options?.required || target[k.key]) {
if (!k.options.validate(target[k.key])) return;
} else {
if (!target[k.key]) return;
}
}
}