portal tab list

This commit is contained in:
yuri
2017-01-17 12:27:21 +02:00
parent ee2a8d2a39
commit 01d8dddeac
2 changed files with 4 additions and 4 deletions
@@ -34,7 +34,6 @@
},
"tabList": {
"type": "array",
"translation": "Global.scopeNamesPlural",
"view": "views/portal/fields/tab-list"
},
"quickCreateList": {
+4 -3
View File
@@ -30,15 +30,16 @@ Espo.define('views/portal/fields/tab-list', 'views/settings/fields/tab-list', fu
return Dep.extend({
setup: function () {
Dep.prototype.setup.call(this);
setupOptions: function () {
Dep.prototype.setupOptions.call(this);
this.params.options = this.params.options.filter(function (tab) {
if (tab === '_delimiter_') return true;
if (!!this.getMetadata().get('scopes.' + tab + '.aclPortal')) {
return true;
}
}, this);
},
}
});