categories for custom entity types

This commit is contained in:
Yurii
2026-02-24 17:10:45 +02:00
parent 1de9046b3d
commit c392fabc14
17 changed files with 609 additions and 47 deletions
@@ -381,12 +381,15 @@ class EntityManagerEditView extends View {
setupDefs() {
const scope = this.scope;
const typeList = (this.getMetadata().get('app.entityTemplateList') || ['Base'])
.filter(it => !this.getMetadata().get(`app.entityTemplates.${it}.isNotCreatable`));
const defs = {
fields: {
type: {
type: 'enum',
required: true,
options: this.getMetadata().get('app.entityTemplateList') || ['Base'],
options: typeList,
readOnly: scope !== false,
tooltip: true,
},