limit fields for status

This commit is contained in:
Yuri Kuznetsov
2025-10-02 10:52:04 +03:00
parent cb16bc9254
commit 9153fbf280
2 changed files with 15 additions and 2 deletions
+14 -2
View File
@@ -44,6 +44,12 @@ class EntityManagerEditView extends View {
additionalParams
defaultParamLocation = 'scopes'
/**
* @private
* @type {string[]}
*/
enumFieldList
data() {
return {
isNew: this.isNew,
@@ -181,13 +187,19 @@ class EntityManagerEditView extends View {
this.enumFieldList = Object.keys(fieldDefs)
.filter(item => {
if (fieldDefs[item].disabled) {
return;
if (
fieldDefs[item].disabled ||
fieldDefs[item].utility ||
fieldDefs[item].directUpdateDisabled
) {
return false;
}
if (fieldDefs[item].type === 'enum') {
return true;
}
return false;
})
.sort((v1, v2) => {
return this.translate(v1, 'fields', scope)