make required generallay available
Some checks failed
API CI / api-tests (pull_request) Failing after 14s
CI / test (pull_request) Failing after 30s

This commit is contained in:
Tim Lorsbach
2026-06-09 10:09:19 +02:00
parent ac297b2e25
commit 8ed3b506cc

View File

@ -59,6 +59,9 @@ document.addEventListener("alpine:init", () => {
get isEditMode() {
return this.mode === "edit";
},
get isRequired() {
return (this.schema.required || []).indexOf(this.fieldName) > -1
}
});
// Text widget
@ -174,9 +177,6 @@ document.addEventListener("alpine:init", () => {
return [];
}
},
get isRequired() {
return (this.schema.required || []).indexOf(this.fieldName) > -1
}
}),
);