inline edit disabled param

This commit is contained in:
yuri
2018-11-13 16:38:08 +02:00
parent 520b3c5e89
commit b6653f99be
4 changed files with 22 additions and 4 deletions
@@ -152,6 +152,11 @@ Espo.define('views/admin/field-manager/edit', ['view', 'model'], function (Dep,
});
}
this.paramList.push({
name: 'inlineEditDisabled',
type: 'bool'
});
this.paramList.forEach(function (o) {
this.model.defs.fields[o.name] = o;
}, this);
@@ -178,6 +183,8 @@ Espo.define('views/admin/field-manager/edit', ['view', 'model'], function (Dep,
this.createFieldView('bool', 'isPersonalData', null, {});
}
this.createFieldView('bool', 'inlineEditDisabled', null, {});
this.createFieldView('text', 'tooltipText', null, {
trim: true,
rows: 1
+6
View File
@@ -232,6 +232,12 @@ Espo.define('views/fields/base', 'view', function (Dep) {
}
}, this);
var additionaParamList = ['inlineEditDisabled'];
additionaParamList.forEach(function (item) {
this.params[item] = this.model.getFieldParam(this.name, item) || null;
}, this);
this.mode = this.options.mode || this.mode;
this.readOnly = this.readOnly || this.params.readOnly || this.model.getFieldParam(this.name, 'readOnly') || this.model.getFieldParam(this.name, 'clientReadOnly');