assigned users notifications
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user