limit fields for status
This commit is contained in:
@@ -227,6 +227,7 @@
|
||||
"type": "enum",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"directUpdateDisabled": true,
|
||||
"layoutMassUpdateDisabled": true,
|
||||
"layoutDetailDisabled": true,
|
||||
"layoutAvailabilityList": ["listForContact"],
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user