EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Email address scope icon
Yurii475f14e42531
diff --git a/client/src/views/email/fields/email-address-varchar.js b/client/src/views/email/fields/email-address-varchar.jsindex 367a8eefa2..d790654890 100644--- a/client/src/views/email/fields/email-address-varchar.js+++ b/client/src/views/email/fields/email-address-varchar.js@@ -499,7 +499,7 @@ class EmailAddressVarcharFieldView extends BaseFieldView {addAddressHtml(address, name) {const $container = this.$el.find('.link-container');- const type = this.typeHash[address];+ const entityType = this.typeHash[address];const id = this.idHash[address];let avatarHtml = '';@@ -507,8 +507,10 @@ class EmailAddressVarcharFieldView extends BaseFieldView {const $text = $('<span>');if (name) {- if (type === 'User' && id) {+ if (entityType === 'User' && id) {avatarHtml = this.getHelper().getAvatarHtml(id, 'small', 18, 'avatar-link');+ } else {+ avatarHtml = this.getHelper().getScopeColorIconHtml(entityType);}$text.append(@@ -608,6 +610,8 @@ class EmailAddressVarcharFieldView extends BaseFieldView {if (entityType === 'User') {avatarHtml = this.getHelper().getAvatarHtml(id, 'small', 18, 'avatar-link');+ } else {+ avatarHtml = this.getHelper().getScopeColorIconHtml(entityType);}const className = this.mode === this.MODE_LIST ? 'text-default' : 'text-record';diff --git a/client/src/views/email/fields/from-address-varchar.js b/client/src/views/email/fields/from-address-varchar.jsindex 24997b0ac8..02f0ad1187 100644--- a/client/src/views/email/fields/from-address-varchar.js+++ b/client/src/views/email/fields/from-address-varchar.js@@ -202,6 +202,8 @@ class EmailFromAddressVarchar extends BaseFieldView {const size = this.mode === this.MODE_DETAIL ? 18 : 16;avatarHtml = this.getHelper().getAvatarHtml(id, 'small', size, 'avatar-link');+ } else if (entityType) {+ avatarHtml = this.getHelper().getScopeColorIconHtml(entityType);}const title = this.mode === this.MODE_LIST ? name : null;