assigned users notifications

This commit is contained in:
yuri
2018-04-24 17:02:14 +03:00
parent 391c0dcaf8
commit 5cd03312e1
5 changed files with 101 additions and 52 deletions
@@ -33,8 +33,14 @@ Espo.define('views/settings/fields/assignment-notifications-entity-list', 'views
this.params.options = Object.keys(this.getMetadata().get('scopes')).filter(function (scope) {
if (this.getMetadata().get('scopes.' + scope + '.disabled')) return;
if (
this.getMetadata().get(['scopes', scope, 'stream'])
&&
!this.getMetadata().get(['entityDefs', scope, 'fields', 'assignedUsers'])
) return;
return this.getMetadata().get('scopes.' + scope + '.notifications') &&
!this.getMetadata().get('scopes.' + scope + '.stream') &&
this.getMetadata().get('scopes.' + scope + '.entity');
}, this).sort(function (v1, v2) {
return this.translate(v1, 'scopeNamesPlural').localeCompare(this.translate(v2, 'scopeNamesPlural'));