forked from enviPath/enviPy
make required generallay available
This commit is contained in:
@ -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
|
||||
}
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user