disable inline edit disabled for autoincrement

This commit is contained in:
Yuri Kuznetsov
2023-05-05 14:33:59 +03:00
parent 5974098482
commit ae17acce20
+4 -3
View File
@@ -182,9 +182,10 @@ define('views/admin/field-manager/edit', ['view', 'model'], function (Dep, Model
this.hasPersonalData = true;
}
this.hasInlineEditDisabled = this.type !== 'foreign' &&
!this.getMetadata().get(['entityDefs', this.scope, 'fields', this.field,
'customizationInlineEditDisabledDisabled']);
this.hasInlineEditDisabled = !['foreign', 'autoincrement'].includes(this.type) &&
!this.getMetadata()
.get(['entityDefs', this.scope, 'fields', this.field,
'customizationInlineEditDisabledDisabled']);
this.hasTooltipText = !this.getMetadata().get(['entityDefs', this.scope, 'fields', this.field,
'customizationTooltipTextDisabled']);